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

remove red skull does not work

xitos

New Member
Joined
Oct 14, 2008
Messages
213
Reaction score
1
Hiho :thumbup:


remove red skull does not work

I'll offer in the shop and put to get red skull

and this message

Player has to be offline or have Lastlogin to complete transaction!.

Anybody know how to fix?

i use Gesior acc maker

The Forgotten Server, version 0.3.5 (Crying Damson)

client 8:52


thanks :peace:
 
ur probably using old remove skulls system that worked for 0.3.4(before black skull). Now when 0.3.5 is released the skulls system is changed so it's obvious that old one won't work. Try this one if you already haven't:

http://otland.net/f118/shopsystem-delete-skull-forgotten-server-0-3-5-a-45265/

put in shopsystem.php?


by the change when there's error


so in this shopsystem.php:

if(count($offer_list['redskull']) > 0)
//Remove Red Skull
foreach($offer_list['redskull'] as $redskull)
{
$main_content .= '<tr bgcolor="gold"><td align="center"><img src="item_images/'.$redskull['id'].'.jpg"></td><td><font color="black"<b>'.$redskull['name'].'</b> ('.$redskull['points'].' points)<br />'.$redskull['description'].'</td><td align="center">';
if(!$logged)
{
$main_content .= '<b>Login to buy</b>';
}
else
{
$main_content .= '<form action="index.php?subtopic=shopsystem&action=select_player" method=POST><input type="hidden" name="buy_id" value="'.$redskull['id'].'"><input type="submit" value="Buy '.$redskull['name'].'"><br><font color="black"<b>for '.$redskull['points'].' points</b></form>';
}
$main_content .= '</td></tr>';
}
if(count($offer_list['unban']) > 0)

:thumbup:
 
here is the one i use
action/script/skull.lua
Lua:
function onUse(cid, item, frompos, item2, topos)
       
        local nonremskulls =  -- These are the skulls it cant remove. If player has any of these, the rune wont work.
{
        white = SKULL_WHITE
}

        if isInArray(nonremskulls, getPlayerSkullType(cid)) then
                doPlayerSendCancel(cid,"You can't remove this type of skull.")
                doSendMagicEffect(getPlayerPosition(cid),2)
        else
                db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
                doCreatureSetSkullType(cid,0)
                doPlayerSendTextMessage(cid,27,"Your frags & your skull have been removed, thanks for donating!")
                doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MAGIC_RED)
				doSendAnimatedText(getPlayerPosition(cid), "Removed!", 180)
                doRemoveItem(item.uid, 1)
				doPlayerSetSkullEnd(cid, 0, getPlayerSkullType(cid))

        return TRUE
        end
end
action/action.xml
Code:
<action itemid="9969" event="script" value="skull.lua"/>
 
here is the one i use
action/script/skull.lua
Lua:
function onUse(cid, item, frompos, item2, topos)
       
        local nonremskulls =  -- These are the skulls it cant remove. If player has any of these, the rune wont work.
{
        white = SKULL_WHITE
}

        if isInArray(nonremskulls, getPlayerSkullType(cid)) then
                doPlayerSendCancel(cid,"You can't remove this type of skull.")
                doSendMagicEffect(getPlayerPosition(cid),2)
        else
                db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
                doCreatureSetSkullType(cid,0)
                doPlayerSendTextMessage(cid,27,"Your frags & your skull have been removed, thanks for donating!")
                doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MAGIC_RED)
				doSendAnimatedText(getPlayerPosition(cid), "Removed!", 180)
                doRemoveItem(item.uid, 1)
				doPlayerSetSkullEnd(cid, 0, getPlayerSkullType(cid))

        return TRUE
        end
end
action/action.xml
Code:
<action itemid="9969" event="script" value="skull.lua"/>


is working

thank you so much :D :peace:
 
Back
Top