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

Windows Need help with a Frag-remover-doll

Nikkster

Programmer
Joined
May 9, 2008
Messages
2,848
Reaction score
10
Location
Confidential
Greetings, since I am not a good LUA scripter, I am wondering if you can make a frag-remover-doll for me that I need help with.

Doll item id = 2108

So for an example, if someone have that item and use it, the player's redskulltime will be set to 0 and ofcourse the item should be deleted.

I just need the script that should be in movements, I can do the rest by myself :)

Reputation to the one who helps me ofcourse, 19 points.
 
U never rep me when I help u xd However, this one works on 0.3.4 and should work on 0.3.2:

LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)

if getCreatureSkullType(cid) == SKULL_RED then
	doPlayerSetRedSkullTicks(cid, 0)
	doCreatureSetSkullType(cid, SKULL_NONE)
	doPlayerSendTextMessage(cid, 25, "Your skull was removed.")	
	doSendMagicEffect(fromPosition,4)
	doRemoveItem(item.uid, 1)
    else
        doPlayerSendCancel(cid, "You do not have a red skull.")
end
end
 
This one is the doll id, you'll just have to configure the action ID.
function onUse(cid, item, fromPosition, itemEx, toPosition)

if getCreatureSkullType(cid) == SKULL_RED then
doPlayerSetRedSkullTicks(cid, 0)
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSendTextMessage(cid, 25, "Your skull was removed.")
doSendMagicEffect(fromPosition,4)
doRemoveItem(item.2108, 1)
else
doPlayerSendCancel(cid, "You do not have a red skull.")
end
end
 
Back
Top