Aegis Support Board: Player level affecting NPCs Options? - Aegis Support Board

Jump to content

ASB News! ASB 5.0 Beta V2 has now been released!. See here for more Info.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Player level affecting NPCs Options?

#1 User is offline   Napishtim 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 28-June 07

Posted 28 June 2007 - 01:51 AM

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
0

#2 User is offline   fRe4k! 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 130
  • Joined: 10-March 03

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:
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.
0

#3 User is offline   Napishtim 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 28-June 07

Posted 28 June 2007 - 04:41 PM

ah thnx i never i knew that
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users