AB
pedido

Scripts

Por abcddr, 08 de ago. de 2012 em Mapping

me ajuda aii pf
script
2
1.1k
abcddrA
08 de agosto de 2012 às 16:28

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 Agosto 11 por caval9

notle2012N
13 de agosto de 2012 às 03:02

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