• 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!

help with script (for wedding ring)

ederwii

New Member
Joined
Oct 19, 2008
Messages
15
Reaction score
0
hi, i wanna make a npc for marry players, but im still learning, for now, i wanna make some actions for wedding rings, to add description like "from ederwii to lalala".

This is my script:

Code:
function onUse(cid,item) {
    doAddDescription(item,"message")
    doCreatureSay (cid,"We wish you a nice future", TALKTYPE_ORANGE_1)
}
return 1
end

and in actions.xml

Code:
	<action itemid="2121" script="boda.lua"/>

but it doesn't work, why?
 
o.o
Code:
function onUse(cid,item)
    doSetItemSpecialDescription(item.uid, "you cannot add message like that")
    doCreatureSay(cid, "We wish you a nice future", TALKTYPE_ORANGE_1)
return 1
end
 
so, this will be the correct script?

Code:
function onUse(cid,item)
    doSetItemSpecialDescription(item.uid, "you cannot add message like that")
    doCreatureSay(cid, "We wish you a nice future", TALKTYPE_ORANGE_1)
return 1
end
 
Back
Top