• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

npc gives a key

kacpersky

Mr. Brightside
Joined
Jan 25, 2009
Messages
499
Reaction score
3
hello!

Im making a npc who will sell a key, and i have a problem that the key have to an actionid but it hasnt.

some code:
PHP:
local key = doPlayerAddItem(cid, 2089, 1, FALSE)
			doSetItemActionId(key, 3142)

i get a key but:
PHP:
01:09 You see a copper key (Key:0).

im using 0.4 . How to fix it ?
 
just add

Code:
doPlayerAddItem(cid, 2089,1)

if in the actions.xml the key is regestered you don't need that

Code:
 doSetItemActionId(key, 3142)

if you want to send me the script and i do it for you it's ok... if u can do it go for it and test it... rep++ me if i helped you please and if u want more help about it or it didnt work msg me please
 
Back
Top Bottom