kelvinvictor 14 Postado Setembro 2, 2011 Share Postado Setembro 2, 2011 Olá xtibianos, eu gostaria de um script que removesse storage de um player. Exemplo: /removestorage 5681, Kelvin Victor Ela removeria a storage 5681 do player Kelvin Victor. Ja tentei usar a talkactions que vem no servidor: /storage Mais não consigo. Nem sei usar. Link para o comentário https://xtibia.com/forum/topic/166836-script-que-remove-storage/ Compartilhar em outros sites More sharing options...
Huntre 1 Postado Setembro 3, 2011 Share Postado Setembro 3, 2011 tente assim por talktions function onSay(cid, words, param) doPlayerRemoveItem(cid,5681,1) end E crei em Talkition.xmll <talkaction words="!remove" event="script" value="nome do arquivo.lua"/> espero que tennha ajudado caso lhe ajudei me mande pvt e de rep+ Link para o comentário https://xtibia.com/forum/topic/166836-script-que-remove-storage/#findComment-1096917 Compartilhar em outros sites More sharing options...
kelvinvictor 14 Postado Setembro 3, 2011 Autor Share Postado Setembro 3, 2011 (editado) Oo, ele ai iria remover o item 5681. Mesmo que funcionasse, eu queria um script que quando eu escrevesse: /removestorage 5681, Makevili Kelvin ele removeria a storage 5681 e quando eu colocasse /removestorage 5555, Makevili Kelvin ele removeria a storage de numero 5555, ou seja, ele serviria para todas as storages Editado Setembro 3, 2011 por kelvinvictor Link para o comentário https://xtibia.com/forum/topic/166836-script-que-remove-storage/#findComment-1097056 Compartilhar em outros sites More sharing options...
Mulizeu 86 Postado Setembro 4, 2011 Share Postado Setembro 4, 2011 Tente assim ----BY MULIZEU------ function onSay(cid, words, param) if (getPlayerStorageValue(uid,valueid) == TRUE) then doPlayerRemoveItem(cid,item.uid) end return false end Link para o comentário https://xtibia.com/forum/topic/166836-script-que-remove-storage/#findComment-1097187 Compartilhar em outros sites More sharing options...
kelvinvictor 14 Postado Setembro 8, 2011 Autor Share Postado Setembro 8, 2011 Não funcionou, quand digito simplesmente parece que estou falando. Eu add a tag no talkactions.xml Link para o comentário https://xtibia.com/forum/topic/166836-script-que-remove-storage/#findComment-1099512 Compartilhar em outros sites More sharing options...
Mulizeu 86 Postado Setembro 8, 2011 Share Postado Setembro 8, 2011 (editado) ve esse ----BY MULIZEU------ function onSay(cid, words, param) if getPlayerStorageValue(cid,valueid) == TRUE then doPlayerRemoveItem(cid,item.uid) end return false end ou assim function onSay(cid, words, param) if words == "/removestorage" then if name then if storge then local acc = getPlayerStorageValue(cid,valueid) if acc ~= 0 then doRemoveStorageValue(acc, valueid) end end end end end Editado Setembro 8, 2011 por mulizeu Link para o comentário https://xtibia.com/forum/topic/166836-script-que-remove-storage/#findComment-1099523 Compartilhar em outros sites More sharing options...
bepokemon 101 Postado Setembro 9, 2011 Share Postado Setembro 9, 2011 (editado) function onSay(cid, words, param, channel) -- Made by Zorrox local pid = cid local t = string.explode(param, ",") if(t[1]) then if(t[2]) then if getCreatureByName(t[2]) > 0 then setPlayerStorageValue(getCreatureByName(t[2]).uid, t[1], -1) doPlayerSendTextMessage(getCreatureByName(t[2]).uid, MESSAGE_STATUS_CONSOLE_BLUE, "You storage value: "..t[1].." has been cleared by "..getCreatureName(cid)..".") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, ""..t[2].."\'s storage value: "..t[1].." has been cleared successfully.") else doPlayerSendCancel(cid, "Player not found.") else doPlayerSendCancel(cid, "Player not found.") doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) end else doPlayerSendCancel(cid, "First param must be a storage value.") doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) end return TRUE end Editado Setembro 9, 2011 por Byerne Link para o comentário https://xtibia.com/forum/topic/166836-script-que-remove-storage/#findComment-1099995 Compartilhar em outros sites More sharing options...
Posts Recomendados