Ir para conteúdo
  • 0

Pedido Script


hakkan224

Pergunta

6 respostass a esta questão

Posts Recomendados

  • 0

assim? o.O

 

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

local pos = {x = 1000, y = 1000, z = 7}

local outfit = 200

 

 

if (msgcontains(msg, 'teleport') or msgcontains(msg, 'Teleport')) then

selfSay("OK then...", cid)

doTeleportThing(cid, pos)

doSetCreatureOutfit(cid, {lookType = outfit}, -1)

end

 

return true

end

 

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)

npcHandler:addModule(FocusModule:new())

 

Link para o comentário
Compartilhar em outros sites

  • 0

assim? o.O

 

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

local pos = {x = 1000, y = 1000, z = 7}

local outfit = 200

 

 

if (msgcontains(msg, 'teleport') or msgcontains(msg, 'Teleport')) then

selfSay("OK then...", cid)

doTeleportThing(cid, pos)

doSetCreatureOutfit(cid, {lookType = outfit}, -1)

end

 

return true

end

 

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)

npcHandler:addModule(FocusModule:new())

 

assim? o.O

 

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

local pos = {x = 1000, y = 1000, z = 7}

local outfit = 200

 

 

if (msgcontains(msg, 'teleport') or msgcontains(msg, 'Teleport')) then

selfSay("OK then...", cid)

doTeleportThing(cid, pos)

doSetCreatureOutfit(cid, {lookType = outfit}, -1)

end

 

return true

end

 

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)

npcHandler:addModule(FocusModule:new())

 

 

Mas é so isso? eu vo por sprite de pokemon da lapras e metro se eu conseguir kk '-'

tem alguma tag ou algo do tipo?

Link para o comentário
Compartilhar em outros sites

  • 0

tem o .xml do npc neh.. ;/

<?xml version="1.0" encoding="UTF-8"?>

<npc name="nome do npc" script="nome do script.lua" walkinterval="0" floorchange="0" access="5" level="100" maglevel="1">
<health now="15" max="15"/>
<look type="1015" head="114" body="119" legs="114" feet="114" corpse="3058"/>

<parameters>

</parameters>
</npc>

Link para o comentário
Compartilhar em outros sites

  • 0

tem o .xml do npc neh.. ;/

<?xml version="1.0" encoding="UTF-8"?>

<npc name="nome do npc" script="nome do script.lua" walkinterval="0" floorchange="0" access="5" level="100" maglevel="1">
<health now="15" max="15"/>
<look type="1015" head="114" body="119" legs="114" feet="114" corpse="3058"/>

<parameters>

</parameters>
</npc>

Repiado, Slicer mas como eu n manjo mt em script pode ensinar a editar? kkk '-' o local pra levar o player e onde troco a sprite

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...