Antes de começar não esqueça de abrir todos os Spoiler
se não os scripts não vao funcionar se não fizer tudo direitinho
:forward: Fly System :back:
1°Vá na pasta do ot data/talcktions/scripts crie um arquivo lua
renomeie para flysystem.lua apague tudo dentro e coloque:
function onSay(cid, words, param) local config = { pz = "yes", -- players precisam estar em protection zone para usar? ("yes" or "no"). battle = "no", -- players deve estar sem battle ("yes" or "no") custo = "no", -- se os teleport irão custa ("yes" or "no") vip = "yes", -- somente vip players poderam usar o comando? ("yes" or "no") storage = 13540 -- Storage Id da sua vip account caso for usar somente vips } -------------Config Lugares---------------- local lugar = { [color="#FF0000"]["depot"] = {{x=129, y=53, z=6}, 1, 0}, ["temple"] = {{x=160, y=54, z=7}, 1, 0}, ["arena"] = {{x=554, y=147, z=7}, 1, 0}, ["trainer"] = {{x=454, y=51, z=13}, 1, 0}, ["viparea"] = {{x=1028, y=1034, z=7}, 1, 0} }[/color] -------------/Config Checkar não mecha---------------- local lugar = lugar[param] if (param == "check") then for name, pos in pairs(lugar) do text = "Destino: "..name..", Level necessario: "..pos[2].."," if(config.battle == "yes") then text = text.." Voce pode usar estando battler: SIM" else text = text.." Voce pode usar estando battler: Não" end if(config.pz == "yes") then text = text.." Voce DeVe Usar estando PZ: SIM" else text = text.." Voce DeVe Usar estando PZ: Não" end if (pos[3] == TRUE) then text = text..", Cost: "..pos[4]..";" end doPlayerSendTextMessage(cid, 22, ""..text.."") end return TRUE end if(config.pz == "yes") and (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"você precisa estar em protection zone pra poder teleportar.") return TRUE end if(config.battle == "yes") and (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você precisa estar sem battler pra poder teleportar.") return TRUE end if (config.vip == "yes") and getPlayerStorageValue(cid, tonumber(config.storage)) - os.time() <= 0 then doPlayerSendCancel(cid,MESSAGE_EVENT_DEFAULT,"Comando so para player vip's.") return TRUE end if not(lugar) then doPlayerSendTextMessage(cid, 25, "desculpe,este lugar não existe,duvida fale !flyinfo vai ver todos os comandos de fly") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return TRUE end if (getPlayerLevel(cid) <= lugar[2]) then doPlayerSendTextMessage(cid, 25, "Desculpe,Voce não tem level. voce precisa "..lugar[2].." level ou mais para ser teleportado.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return TRUE end if(config.custo == "yes") and (doPlayerRemoveMoney(cid, lugar[3]) == FALSE) then doPlayerSendTextMessage(cid, 25, "Desculpe,voce nao tem dinheiro suficiente. Voce precisa "..lugar[3].." gp para ser teleportado.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return TRUE end doTeleportThing(cid, lugar[1]) doSendMagicEffect(lugar[1], CONST_ME_TELEPORT) doBroadcastMessage("" .. getPlayerName(cid) .. " has flown to " .. param .. " using !fly ", MESSAGE_INFO_DESCR) end
2°Agr vá em data/talcktions/talcktions.xml
e cole isso:
<talkaction words="!fly" event="script" value="flysystem.lua"/>
:forward: Broadcast Vip :back:
1°Vá em data/talcktions/scripts crie um arquivo lua renomeie
para broadvip.lua apague tudo e cole isso
local config = { priceForEachMessage = 1, -- preço de cada mensagem } local storage = 13540 function onSay(cid, words, param, channel) if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Digite alguma coisa.") return TRUE end if getPlayerStorageValue(cid,13540) <= -1 then doPlayerSendCancel(cid, "Só players Vips podem falar em verde.") return TRUE end if(doPlayerRemoveMoney(cid, config.priceForEachMessage) == TRUE) then doBroadcastMessage("[V.I.P] " .. getPlayerName(cid) .. " : " .. param .. "", MESSAGE_INFO_DESCR) else doPlayerSendCancel(cid, "Você precisa de " .. config.priceForEachMessage .. " gps para enviar a messagem.") end return TRUE end
2°Agr vá em data/talcktions/talcktions.xml e cole isso
<talkaction words="/bvip" event="script" value="broadvip.lua"/>
O comando para falar será /bvip Eai
[V.I.P]Nameplayer:Eai
Se funcionou Comentem ai e não esqueçam REP+