deria como fazer essa estatua para dar um addon ? normal
- Fórum
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- Estátua De Outfit De Monster + VIP
LU
action
Estátua De Outfit De Monster + VIP
Por LuckinhaSan, 15 de mar. de 2013 em Actions e Talkactions
otserv
tibia
script
2
1.2k
10 meses depois...
info
Grupo: Campones
Registrado: 03/10/11
Posts: 21
Reputação: 0
Char no Tibia: skuld kiremya

27 de janeiro de 2014 às 18:00

info
Grupo: Conde
Registrado: 03/09/11
Posts: 703
Reputação: +191
Gênero: Masculino
Char no Tibia: Mirade
Fala Galera Do Fórum xTibia!
Eu Estava Vagando Por Alguns Fóruns, e Encontrei
Essa Action, Muito Boa Para Map's De EXP Baixa/Alta/Mediana.
Vamos Lá!
Primeiramente, Vá Em data/actions/scripts e Crie Um Arquivo .lua
Com o Nome De changeoutfit, Adicione Isso Nele -
local price = 100000 --- How much it gonna cost. This is 100k local duration = 18000 --- How long time you gonna have the outfit. local monsters = {"orc warrior", "pirate cutthroat", "dworc voodoomaster", "dwarf guard", "minotaur mage"} --- Outfitnames. You can add more. function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerVipDays(cid) < 1 then doPlayerSendTextMessage(cid,19,"You need to be vip to change to monster outfit!") elseif getPlayerVipDays(cid) >= 1 then doPlayerRemoveMoney(cid, price) doSetMonsterOutfit(cid,monsters[math.random(#monsters)],duration*1000) doPlayerSendTextMessage(cid, 20, 'You got a random outfit for '.. price ..' gold coins!') else doPlayerSendTextMessage(cid, 20, 'You don\'t have '..price..' gold coins required for the random outfit!') doSendMagicEffect(getThingPos(cid),12) end return true endDepois Vá Em data/actions.xml e Adicione a Seguinte Tag -
Depois Vá Em Seu Map Editor, e Adicione Os ID's Da Estátua, Observe -
Espero Que Gostem!
Créditos - Mark e Same