Postado Abril 9, 2014 11 anos Gente, me perdoem se estou postando no lugar errado mas penso que esta area (Suporte) e a correta entao.. O comando /r nao quer funcionar.. nao da erro no distro nem nada, irei postar o talkactions.xml e o remove.lua. Se algum puder me dizer se tem algo errado agradeço. Talkactions.xml <?xml version="1.0" encoding="UTF-8"?> <talkactions> <!-- Gods --> <talkaction log="yes" words="/addskill" access="5" event="function" value="addSkill"/> <talkaction log="yes" words="/attr" access="5" event="function" value="thingProporties"/> <talkaction log="yes" words="/serverdiag" access="5" event="function" value="diagnostics"/> <talkaction log="yes" words="/closeserver" access="5" event="script" value="closeopen.lua"/> <talkaction log="yes" words="/openserver" access="5" event="script" value="closeopen.lua"/> <talkaction log="yes" words="/promote;/demote" access="5" event="script" value="promote.lua"/> <talkaction log="yes" words="/shutdown" access="5" event="script" value="shutdown.lua"/> <talkaction log="yes" access="5" words="/mode" event="script" value="mode.lua"/> <!-- Community Managers --> <talkaction log="yes" words="/s" access="5" event="script" value="summon.lua"/> <talkaction log="yes" words="/n" access="5" event="script" value="creature.lua"/> <talkaction log="yes" words="/m" access="5" event="script" value="creature.lua"/> <talkaction log="yes" words="/reload" access="5" event="script" value="reload.lua"/> <talkaction log="yes" words="/raid" access="5" event="script" value="raid.lua"/> <talkaction log="yes" words="/newtype" access="5" event="script" value="newtype.lua"/> <talkaction log="yes" words="/r" access="4" event="script" value="remove.lua"/> <talkaction log="yes" words="/owner" access="5" event="script" value="owner.lua"/> <talkaction log="yes" words="/storage" access="5" event="script" value="storage.lua"/> <talkaction log="yes" words="/config" access="5" event="script" value="configinfo.lua"/> <talkaction log="yes" words="/i" access="5" event="script" value="createitem.lua"/> <talkaction access="5" words="/z" event="script" value="magiceffect.lua"/> <talkaction access="5" words="/x" event="script" value="animationeffect.lua"/> <talkaction access="5" words="/y" event="script" value="animatedtext.lua"/> <talkaction log="yes" words="/bc" access="5" event="script" value="broadcastclass.lua"/> <talkaction log="yes" access="5" words="/mkick" event="script" value="masskick.lua"/> <!-- Gamemasters --> <talkaction log="yes" words="/ghost" access="3" event="function" value="ghost"/> <talkaction log="yes" words="/squelch" access="5" event="script" value="gamemaster.lua"/> <talkaction log="yes" words="/cliport" access="5" event="script" value="gamemaster.lua"/> <talkaction log="yes" words="/t" access="5" event="script" value="teleportmaster.lua"/> <talkaction log="yes" words="/c" access="5" event="script" value="teleporthere.lua"/> <talkaction log="yes" words="/goto" access="5" event="script" value="teleportto.lua"/> <talkaction log="yes" words="/a" access="5" event="script" value="teleporttiles.lua"/> <talkaction log="yes" words="/kick" access="5" event="script" value="kick.lua"/> <talkaction log="yes" words="/send" access="3" event="script" value="teleportsend.lua"/> <talkaction log="yes" words="/unban" access="5" event="script" value="unban.lua"/> <talkaction log="yes" words="/town" access="5" event="script" value="teleporttown.lua"/> <talkaction log="yes" words="/up" access="5" event="script" value="teleportfloor.lua"/> <talkaction log="yes" words="/down" access="5" event="script" value="teleportfloor.lua"/> <talkaction log="yes" words="/save" access="5" event="script" value="save.lua"/> <talkaction log="yes" words="/clean" access="5" event="script" value="clean.lua"/> <talkaction log="yes" words="/reports" access="5" event="script" value="reports.lua"/> <talkaction log="yes" words="/mc" access="5" event="script" value="multicheck.lua"/> <talkaction log="yes" access="5" words="/wp" event="script" value="waypoints.lua"/> <!-- Senior Tutors --> <talkaction log="yes" words="/notations" access="2" event="script" value="notations.lua"/> <talkaction log="yes" words="/info" access="2" event="script" value="playerinfo.lua"/> <talkaction log="yes" words="/gethouse" access="2" event="script" value="gethouse.lua"/> <talkaction log="yes" access="2" words="/b" event="script" value="broadcast.lua"/> <!-- Tutors --> <talkaction log="yes" words="/baninfo" access="1" event="function" value="banishmentInfo"/> <talkaction log="yes" access="1" words="/pos" event="script" value="position.lua"/> <!-- Players --> <talkaction words="!createguild" event="function" value="guildCreate"/> <talkaction words="!joinguild" event="function" value="guildJoin"/> <talkaction words="!frags" event="script" value="frags.lua"/> <talkaction words="!online" event="script" value="online.lua"/> <talkaction words="!uptime" event="script" value="uptime.lua"/> <talkaction words="!pvp" event="script" value="pvp.lua"/> <talkaction words="!q" event="script" value="money.lua"/> <talkaction words="!serverinfo" event="script" value="serverinfo.lua"/> <talkaction words="/commands" event="script" value="commands.lua"/> <talkaction words="!notice" event="script" value="notice.lua"/> <talkaction words="!go" event="script" value="guildoutfit.lua"/> <talkaction words="!highscores" event="script" value="ranks.lua"/> <talkaction words="/highscores" event="script" value="ranks.lua"/> <talkaction words="!rank" event="script" value="ranks.lua"/> <talkaction words="!ranks" event="script" value="ranks.lua"/> <!-- Houses --> <talkaction words="!buyhouse" filter="word-spaced" event="function" value="houseBuy"/> <talkaction words="!sellhouse" filter="word-spaced" event="function" value="houseSell"/> <talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/> <talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/> <talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/> <talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/> <talkaction words="!leavehouse" filter="word-spaced" event="script" value="leavehouse.lua"/> <!-- (Deprecated) Redirect old '/' to '!' --> <talkaction words="/deathlist" hide="yes" event="script" value="deathlist.lua"/> </talkactions> remove.lua function onSay(cid, words, param, channel) local toPos = getCreatureLookPosition(cid) if(isInArray({"full", "all"}, param:lower())) then doCleanTile(toPos, false) doSendMagicEffect(toPos, CONST_ME_MAGIC_RED) return true end local amount = 1 param = tonumber(param) if(param) then amount = param end toPos.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE local tmp = getThingFromPos(toPos) if(tmp.uid ~= 0) then if(isCreature(tmp.uid)) then doRemoveCreature(tmp.uid) else doRemoveItem(tmp.uid, math.min(math.max(1, tmp.type), amount)) end doSendMagicEffect(toPos, CONST_ME_MAGIC_RED) return true end toPos.stackpos = STACKPOS_TOP_FIELD tmp = getThingFromPos(toPos) if(tmp.uid ~= 0) then doRemoveItem(tmp.uid, math.min(math.max(1, tmp.type), amount)) doSendMagicEffect(toPos, CONST_ME_MAGIC_RED) return true end toPos.stackpos = STACKPOS_TOP_CREATURE tmp = getThingFromPos(toPos) if(tmp.uid ~= 0) then doRemoveCreature(tmp.uid) doSendMagicEffect(toPos, CONST_ME_MAGIC_RED) return true end for i = 5, 1, -1 do toPos.stackpos = i tmp = getThingFromPos(toPos) if(tmp.uid ~= 0) then if(isCreature(tmp.uid)) then doRemoveCreature(tmp.uid) else doRemoveItem(tmp.uid, math.min(math.max(1, tmp.type), amount)) end doSendMagicEffect(toPos, CONST_ME_MAGIC_RED) return true end end doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return true end Editado Abril 9, 2014 11 anos por JOVI (veja o histórico de edições)
Postado Abril 9, 2014 11 anos Autor Qual ot você tá usando, global ou baiak ? é um ot 8.1 mapa proprio, distro aries.
Postado Abril 9, 2014 11 anos Ah, então nem sei parceiro, preciso de um arquivo msvcp100.dl para funfao o RME :C
Postado Abril 9, 2014 11 anos o meu funciona 100%, experimenta trocar function onSay(cid, words, param, channel) local toPos = getCreatureLookPosition(cid) if(isInArray({"full", "all"}, param:lower())) then doCleanTile(toPos, false) doSendMagicEffect(toPos, CONST_ME_MAGIC_RED) return true end local amount = 1 param = tonumber(param) if(param) then amount = param end toPos.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE local tmp = getThingFromPos(toPos) if(tmp.uid ~= 0) then if(isCreature(tmp.uid)) then doRemoveCreature(tmp.uid) else doRemoveItem(tmp.uid, math.min(math.max(1, tmp.type), amount)) end doSendMagicEffect(toPos, CONST_ME_MAGIC_RED) return true end toPos.stackpos = STACKPOS_TOP_FIELD tmp = getThingFromPos(toPos) if(tmp.uid ~= 0) then doRemoveItem(tmp.uid, math.min(math.max(1, tmp.type), amount)) doSendMagicEffect(toPos, CONST_ME_MAGIC_RED) return true end toPos.stackpos = STACKPOS_TOP_CREATURE tmp = getThingFromPos(toPos) if(tmp.uid ~= 0) then doRemoveCreature(tmp.uid) doSendMagicEffect(toPos, CONST_ME_MAGIC_RED) return true end for i = 5, 1, -1 do toPos.stackpos = i tmp = getThingFromPos(toPos) if(tmp.uid ~= 0) then if(isCreature(tmp.uid)) then doRemoveCreature(tmp.uid) else doRemoveItem(tmp.uid, math.min(math.max(1, tmp.type), amount)) end doSendMagicEffect(toPos, CONST_ME_MAGIC_RED) return true end end doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return true end lembra que esse comando remove coisas e precisa ter acesso 4 pra usar.
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.