Ir para conteúdo

Preciso Que Arrumem Esse Script


Thiigoo

Posts Recomendados

Preciso que arrumem esse script.

 

O Script era pra tirar os itens do player mais não esta tirando se alguem souber.

 

local keywordHandler = KeywordHandler:new()

local npcHandler = NpcHandler:new(keywordHandler)

NpcSystem.parseParameters(npcHandler)

local talkState = {}

 

function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end

function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end

function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end

function onThink() npcHandler:onThink() end

 

function creatureSayCallback(cid, type, msg)

if(not npcHandler:isFocused(cid)) then

return false

end

 

local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid

 

 

if msgcontains(msg, 'warlock room') then

selfSay('voce deseja sabe sobre a warlock room?.', cid)

talkState[talkUser] = 2

 

elseif msgcontains(msg, 'yes') then

selfSay('Esta bem! Muitos anos atras grandes magos estavam armando uma terrivel invasão a thyrania, eles se escomdem em uma torre aonde guarda grandes misterios. Voce deseja minha {permissao} para entrar na torre?', cid)

talkState[talkUser] = 1

 

elseif talkState[talkUser] == 1 then

if msgcontains(msg, 'permissao') then

selfSay('Para ter minha permiçao Diga {permision}.', cid)

talkState[talkUser] = 2

 

 

elseif msgcontains(msg, 'general') then

selfSay('Remember that if you die, it is YOUR problem and you won\'t be able to get back to your corpse and your backpack.If you enter in inquisition or you win or you go to temple.', cid)

talkState[talkUser] = 0

 

 

elseif msgcontains(msg, 'lock') then

selfSay('A great Inquisition cost 400000 golds.', cid)

talkState[talkUser] = 0

end

 

 

 

 

elseif talkState[talkUser] == 2 then

if msgcontains(msg, 'kiukiukiu') then

selfSay('The fee is 1000 gold for one try. Remember that if you die, it is YOUR problem and you won\'t be able to get back to your corpse andyour backpack. Do you really want to participate in the arena in the easiest difficulty?', cid)

talkState[talkUser] = 3

 

 

elseif msgcontains(msg, 'koikoikoi') then

selfSay('The fee is 5000 gold for one try. Remember that if you die, it is YOUR problem and you won\'t be able to get back to your corpse and your backpack. Do you really want to participate in the arena in the medium difficulty?', cid)

talkState[talkUser] = 4

 

 

elseif msgcontains(msg, 'permision') then

selfSay('Mas Primeiro voce precisa provar sua lealdade me trazendo 1 ice rapier e 5 demon dust. Quando troxer diga {lock}.', cid)

talkState[talkUser] = 3

end

 

 

elseif talkState[talkUser] == 3 then

if msgcontains(msg, 'lock') then

if getPlayerStorageValue(cid,50066) == -1 then

if(doPlayerRemoveMoney(cid, 0) == TRUE) then

doPlayerRemoveItem(cid,2396,1)

doPlayerRemoveItem(cid,5906,5)

setPlayerStorageValue(cid,5074,1)

selfSay('Obrigado! Agora voce pode entrar na warlock room.', cid)

end

else

selfSay('You already win this arena!', cid)

end

else

selfSay('Then not. Get away and don\'t waste my time!', cid)

end

 

elseif talkState[talkUser] == 4 then

if msgcontains(msg, 'yes') then

if getPlayerStorageValue(cid,500677) == -1 then

if(doPlayerRemoveMoney(cid, 5000) == TRUE) then

setPlayerStorageValue(cid,500677,1)

selfSay('Obrigado! Agora voce pode entrar na warlock room.', cid)

end

else

selfSay('You already win this arena!', cid)

end

else

selfSay('Then not. Get away and don\'t waste my time!', cid)

end

 

elseif talkState[talkUser] == 5 then

if msgcontains(msg, 'yes') then

if getPlayerStorageValue(cid,5076) == -1 then

if(doPlayerRemoveMoney(cid, 600000) == TRUE) then

setPlayerStorageValue(cid,5074,1)

selfSay('As you wish! You can pass the door now and enter the door to the pits.', cid)

end

else

selfSay('As you wish! You can pass the door now and enter the door to the pits.', cid)

end

else

selfSay('Then not. Get away and don\'t waste my time!', cid)

end

 

 

talkState[talkUser] = 0

elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then

talkState[talkUser] = 0

selfSay('Ok then.', cid)

end

 

return true

end

 

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)

npcHandler:addModule(FocusModule:new())

 

 

Espero respostas ;DD

 

 

ALGUEEEEEEEEM AJUDAAAAA

Editado por Thiiagoo
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...