Postado Março 26, 2015 10 anos Boa tarde, tem como me explicar onde devo colocar esse script e o action de remover skull em area pz. É que sou leigo no assunto. Por favor. Você deve colocar em "SeuOT/mods" o item fica no próprio script, na tag: <action itemid="9969" event="script"><![CDATA[ Lembre-se que como é um mod você deve colocar como xml exemplo: nomedoarquivo.xml e não .lua! ➥ Regras | Seções OTServ | Seções BOT
Postado Março 26, 2015 10 anos vai em data/actions/scripts/ crie removeskull.lua : function onUse(cid, item) local noRemove = {SKULL_WHITE, SKULL_YELLOW} local playerSkull = getPlayerSkullType(cid) if getTitleInfo(getThingPos(cid)).protection then if isInArray(noRemove, playerSkull) then doPlayerSendCancel(cid, "You can't remove this type of skull.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) elseif playerSkull == SKULL_NONE then doPlayerSendCancel(cid, "You don't have skull.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) else db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")") doPlayerSendTextMessage(cid, 27, "Your frags & your skull have been removed!") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED) doSendAnimatedText(getPlayerPosition(cid), "POFF!", 180) doCreatureSetSkullType(cid,0) doPlayerSetSkullEnd(cid, 0, playerSkull) doRemoveItem(item.uid, 1) end else doPlayerSendTextMessage(cid, 27, "You not is in pz-zone.!") end return true end em actions.XML <action itemid="IDDEALGUMITEM" event="script" value="removeskull.lua"/>
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.