{Quest Star Items} Heroserv~Loucoserv

Subwat
Por Subwat
em Actions e Talkactions

Subwat

GAUCHO MACHO
avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 27/07/09Posts: 1516Char no Tibia: Gean Riot

esse é o sistema que a equipe do heroserv usa para dar itens stars,no Hero ao atingir level 200 você é teleportado automaticamente há uma sala com as chests,ao dar use numa das chests você recebe o item e é teleportado para o templo.

simples e útil.

 

CREATURESCRIPTS/SCRIPTS/200.LUA

 

function onAdvance(cid, skill, oldLevel, newLevel)
if skill == SKILL__LEVEL then
if newLevel >= 200 and oldLevel < 200 then
pos = {x=10475, y=10807, z=7}
doTeleportThing(cid,pos)
pos = {x=10475, y=10807, z=7}
doPlayerSendTextMessage(cid, 22, "parabéns você atingiu o level 200 você pode escolher um star item!")
end
end
end

 

TAG:

	<event type="advance" name="staritem" script="200.lua"/>

em creaturescripts/scripts/login.lua

cole está tag tmbm

 

if getPlayerLevel(cid) < 200 then 
registerCreatureEvent(cid, "staritem") 
end

 

 

ACTIONS:

function onUse(cid, item, frompos, item2, topos)
if item.uid == 2433 then
queststatus = getPlayerStorageValue(cid,7407)
if queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "you received your star item!.") 
doPlayerAddItem(cid,2433,1)
pos = {x=10160, y=10054, z=7}
doTeleportThing(cid,pos)
pos = {x=10160, y=10054, z=7}
setPlayerStorageValue(cid,7407,1)
else
doPlayerSendTextMessage(cid,22,"Você ja ganhou este bonus!")
end
else
return 0
end
return 1
end 

function onUse(cid, item, frompos, item2, topos)
if item.uid == 7388 then
queststatus = getPlayerStorageValue(cid,7407)
if queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "you received your star item!.") 
doPlayerAddItem(cid,7388,1)
pos = {x=10160, y=10054, z=7}
doTeleportThing(cid,pos)
pos = {x=10160, y=10054, z=7}
setPlayerStorageValue(cid,7407,1)
else
doPlayerSendTextMessage(cid,22,"Você ja ganhou este bonus!")
end
else
return 0
end
return 1
end 

function onUse(cid, item, frompos, item2, topos)
if item.uid == 7407 then
queststatus = getPlayerStorageValue(cid,7407)
if queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "you received your star item!.") 
doPlayerAddItem(cid,7407,1)
pos = {x=10160, y=10054, z=7}
doTeleportThing(cid,pos)
pos = {x=10160, y=10054, z=7}
setPlayerStorageValue(cid,7407,1)
else
doPlayerSendTextMessage(cid,22,"Você ja ganhou este bonus!")
end
else
return 0
end
return 1
end 

function onUse(cid, item, frompos, item2, topos)
if item.uid == 7415 then
queststatus = getPlayerStorageValue(cid,7407)
if queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "you received your star item!.") 
doPlayerAddItem(cid,7415,1)
pos = {x=10160, y=10054, z=7}
doTeleportThing(cid,pos)
pos = {x=10160, y=10054, z=7}
setPlayerStorageValue(cid,7407,1)
else
doPlayerSendTextMessage(cid,22,"Você ja ganhou este bonus!")
end
else
return 0
end
return 1
end 

 

TAGS:

  <action uniqueid="2433" event="script" value="2433.lua"/>
       <action uniqueid="7415" event="script" value="7415.lua"/>
       <action uniqueid="7407" event="script" value="7407.lua"/>
       <action uniqueid="7388" event="script" value="7388.lua"/>

 

 

No map editor crie a area com as chests com as respectivas Unique IDS,mude as POSITIONS q vai ser teleportado NOs scripts.

Entrem Server online desde o dia 22/02/2013 Monster 24HORAS dedicado!

IP: monster24h.com

PROTOCOL:8.60

PORT:7171

 

RATES:

Exp: 9999x~10x

Skills:800x

Magic:200x

Loot:2x

Pvp-e Advanced: 1.1x Ao matar players de level semelhante.

 

Accounts Pelo Account Manager!

LukaszG

Lendario.
avatar
Barão
Barão

INFOS

Grupo: BarãoRegistrado: 18/06/11Posts: 230Char no Tibia: Louco Do Gole

First Muito bom tava atraiz desse script.

 

VLW

4d69a6188cba4.gif

 

E-mail / MSN:

lukaszG_xtibia@hotmail.com

 

 

 

mplz1ajaxizt5mzcdc6n.png

devotti2

Banido
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 10/11/10Posts: 44Char no Tibia: Hacked :S

Perfect. rep +

BANIDO POR COMÉRCIO DE SERVIDORES

Subwat

GAUCHO MACHO
avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 27/07/09Posts: 1516Char no Tibia: Gean Riot

hehe vlw brow.

brigado pela consideração

Entrem Server online desde o dia 22/02/2013 Monster 24HORAS dedicado!

IP: monster24h.com

PROTOCOL:8.60

PORT:7171

 

RATES:

Exp: 9999x~10x

Skills:800x

Magic:200x

Loot:2x

Pvp-e Advanced: 1.1x Ao matar players de level semelhante.

 

Accounts Pelo Account Manager!

SkyDangerous

Deus Kalec
avatar
Lorde
Lorde

INFOS

Grupo: LordeRegistrado: 17/01/09Posts: 2098Char no Tibia: Adra Sata

uhuh'

Criativo , ja vo por no meu servidor ;D

 

REP + ;d

Me segui lá (:

 

b906.png

http://ageofwar.servegame.com/

IP: ageofwar.servegame.com

TIBIA: 10.78

GLOBAL PERFECT CUSTOM

Subwat

GAUCHO MACHO
avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 27/07/09Posts: 1516Char no Tibia: Gean Riot

VLW ae sangbão,foi facil de fazer esse script :p

Entrem Server online desde o dia 22/02/2013 Monster 24HORAS dedicado!

IP: monster24h.com

PROTOCOL:8.60

PORT:7171

 

RATES:

Exp: 9999x~10x

Skills:800x

Magic:200x

Loot:2x

Pvp-e Advanced: 1.1x Ao matar players de level semelhante.

 

Accounts Pelo Account Manager!

Luansousa

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 04/09/11Posts: 11Char no Tibia: Hene Rene

Script boa só agr q eu consegui acha :thumbsupsmiley2:

Rep :button_ok: Vlw's Geanpost-329486-0-48748800-1317234248_thumb.gif