Ir para conteúdo
  • 0

abcddr

Pergunta

Queria saber se tem algum topico com essas scripts.. mostrando como coloca no o-=D agradeço

 

 

*Bless System

*Lottery System

*Castle System

*Woe System

*Custom Items

*Cassino

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

1 resposta a esta questão

Posts Recomendados

  • 0

Bless System

data\talkactions\scripts\bless.lua

function onSay(cid, words, param)
local fail = 0
if getPlayerLevel(cid) < 31 then
 cost = 2000
else
 cost = ((getPlayerLevel(cid) - 30) * 200) + 2000
end

if cost > 20000 then
 cost = 20000
end
for i = 1, 5 do
 if getPlayerBlessing(cid, i) then
  fail = fail + 1
 else
  if doPlayerRemoveMoney(cid, cost) == TRUE then
   doPlayerAddBlessing(cid, i)
   if i == 5 and not(fail == 5) then
 doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
   end
  else
   doPlayerSendCancel(cid, "You do not have enough money to buy all the blessings!")
   break
  end
 end
end
if fail == 5 then
 doPlayerSendCancel(cid, "You already have all the blessings!")
end
return TRUE
end

data\talkactions\talkactions.xml

<talkaction words="!bless" script="bless.lua" />

loga player diz !bless

Lottery System

http://www.xtibia.com/forum/topic/133381-lottery-system/

Castle System

http://www.xtibia.com/forum/topic/138001-castle-war-20/

ta bom, da procurada no xtibia que deve ter os outros

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...