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

Frag Doll - Mystic Spirit 0.2.9, help please

grand128

New Member
Joined
Jun 8, 2009
Messages
33
Reaction score
0
Can someone make for me action script which will work on mystic spirit. Frag doll which delete red skull and frags. I can't find it on forum, I found just for 0.3.5 etc.

Please help. I give repp.
 
I had this on 0.3.6

local config =
{
item = 6579,
level = 1,
count = 0
}
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags has been removed.")
doRemoveItem(item.uid)
doCreatureSetSkullType(cid, SKULL_NONE)
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doPlayerSetSkullEnd(cid, 0, SKULL_RED)
else
doPlayerSendCancel(cid, "You dot have enough level")
end
return TRUE
end

but on MS 0.2.9 it doesnt work

error:
[02/01/2011 00:09:36] Lua Script Error: [Action Interface]
[02/01/2011 00:09:36] data/actions/scripts/frag.lua:eek:nUse
[02/01/2011 00:09:36] data/actions/scripts/frag.lua:11: attempt to call global 'doCreatureSetSkullType' (a nil value)
[02/01/2011 00:09:36] stack traceback:
[02/01/2011 00:09:36] [C]: in function 'doCreatureSetSkullType'
[02/01/2011 00:09:36] data/actions/scripts/frag.lua:11: in function <data/actions/scripts/frag.lua:7>

so, can anyone help me?
 
Last edited:
bump, please help ;>


I think it should be query to database which set 'redskulltime' and 'redskull' to 0. After relog character shouldnt have rs and frags, can someone make it for me?
 
Last edited:

Similar threads

Back
Top