Is there anyway to make an NPC so say a level 19 player can get more options for items than a level 10 player and if so how do i do a script for level altering? Also is there a script that makes items untradable and unequipable? Thnx for any help
Page 1 of 1
Player level affecting NPCs Options?
#2
Posted 28 June 2007 - 12:41 PM
A characters level is saved in v[VAR_CLEVEL], the joblevel in v[VAR_JOBLEVEL]
So you can do something like:
Levelaltering can be done by adding a shitload of "getexp XXXXXX" commands (and getJexp for joblevels)
like
Items that are untradeable and unequippable.. I believe that is all Database related. You'll have to edit the items there accordingly.
So you can do something like:
if((v[VAR_CLEVEL] > 84) & (v[VAR_JOBLEVEL] > 49)) dialog "blabla" ... else dialog "You're too low ..." ... endif
Levelaltering can be done by adding a shitload of "getexp XXXXXX" commands (and getJexp for joblevels)
like
getexp 9 getexp 16 getexp 25 getexp 36 getexp 77 getexp 112 getexp 153 getexp 200 getexp 253 getexp 320 getexp 385 ...
Items that are untradeable and unequippable.. I believe that is all Database related. You'll have to edit the items there accordingly.
Share this topic:
Page 1 of 1

Help










