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

Action Right click ---> remove frags.

i use 0.3.5p1
and i get this error
[18/08/2009 07:34:11] Lua Script Error: [Action Interface]
[18/08/2009 07:34:11] data/actions/scripts/remove.lua:eek:nUse

[18/08/2009 07:34:11] data/actions/scripts/remove.lua:10: attempt to call global 'getPlayerRedSkullTicks' (a nil value)
[18/08/2009 07:34:11] stack traceback:
[18/08/2009 07:34:11] data/actions/scripts/remove.lua:10: in function <data/actions/scripts/remove.lua:8>
 
@Up:
For TFS 0.3.5pl1.
Lua:
local config =
{
    item = itemid,  -- itemid the item you right click on and reset your frags.
    level = 10,
    count = 1
}

function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "All your frags")
        doRemoveItem(item.uid)
        doPlayerSetRedSkullTicks(cid, 0)
    else
	skullNames = {"Yellow", "Green", "White", "Red", "Black"}
        doPlayerSendCancel(cid, "Your "..skullNames[getCreatureSkullType(cid)].." skull have been removed.")
    end
    return TRUE
end
 
Script :
for 0.3.5p1
Code:
local config =
{
    item = 10224,  -- itemid the item you right click on and reset your frags.
    level = 50,
    count = 1
}

function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "All your frags")
        doRemoveItem(item.uid)
        doPlayerSetRedSkullTicks(cid, 0)
    else
        skullNames = {"Yellow", "Green", "White", "Red", "Black"}
        doPlayerSendCancel(cid, "Your "..skullNames[getCreatureSkullType(cid)].." skull have been removed.")
    end
    return TRUE
end
Errors :
Code:
[18/08/2009 10:02:24] data/actions/scripts/remove.lua:onUse

[18/08/2009 10:02:24] data/actions/scripts/remove.lua:12: attempt to call global 'doPlayerSetRedSkullTicks' (a nil value)
[18/08/2009 10:02:24] stack traceback:
[18/08/2009 10:02:24] 	data/actions/scripts/remove.lua:12: in function <data/actions/scripts/remove.lua:8>
 
If player have pz then?... He can just use this when he's in a war or trapped. Then logout lol
 
TFS 0.3.5pl1 have "doPlayerSetRedSkullTicks()" in doc/LUAFUNCTIONS.

I can't help you, sorry <_<.
 
@Sizaro:
Code:
if hasCondition(cid, CONDITION_INFIGHT) then
	return
end
 
Back
Top