• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Help] Editing item to make it give zen when use

Newbie Spellweaver
Joined
Nov 1, 2012
Messages
7
Reaction score
0
i'm trying to edit some item that when use it will give a zen instead of coins or salary like this.

Code:
	function OnUseItem(){
			
		//ษพณฯ๛บฤฮ๏ฦท
		$result = SubPlayerInfo( -1, "item", 43266 , 1 )
		if $result == 0
			AddPlayerInfo( -1, "givepoint", 500  )
		endif
	}
I've tried to change from "givepoint" to another like gold, goldpoint, cash, zen... but it doesn't work at all. When i try to use item after change it nothing happened at all (The item didn't gone like i can't use it).

Have any1 tried like me ?? Is it possible to do it? Thanks.
*Sorry for my English.
 
Back
Top