return TRUE
end
function onLogin(cid)
registerCreatureEvent(cid, "PlayerDeath")
registerCreatureEvent(cid, "PlayerKill")
if (InitArenaScript ~= 0) then
InitArenaScript = 1
-- libera as salas da arena
for i = 42300, 42309 do
setGlobalStorageValue(i, 0)
setGlobalStorageValue(i+100, 0)
end
end
-- senão completou arena 1 começa do zero
if getPlayerStorageValue(cid, 42309) < 1 then
for i = 42300, 42309 do
setPlayerStorageValue(cid, i, 0)
end
end
-- senão completou arena 2 começa do zero
if getPlayerStorageValue(cid, 42319) < 1 then
for i = 42310, 42319 do
setPlayerStorageValue(cid, i, 0)
end
end
-- senão completou arena 3 começa do zero
if getPlayerStorageValue(cid, 42329) < 1 then
for i = 42320, 42329 do
setPlayerStorageValue(cid, i, 0)
end
end
if getPlayerStorageValue(cid, 42355) == -1 then
setPlayerStorageValue(cid, 42355, 0) -- não fez arena
end
setPlayerStorageValue(cid, 42350, 0) -- tempo pra kick 0
setPlayerStorageValue(cid, 42352, 0) -- não está na arena
if(InitShopComunication == 0) then
local eventServ = addEvent(sql_communication, SQL_COMUNICATION_INTERVAL, {})
local historyPage = addEvent(historyPage, 60000, {})
InitShopComunication = eventServ
end
return TRUE
end
function onKill(cid, target)
local monster = getCreatureName(target)
local room = getArenaMonsterIdByName(monster)
if room > 0 then
setPlayerStorageValue(cid, room, 1)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_DEFAULT,'You may enter the next arena pit!')
end
return 1
end
<monster name="Keebosh the Exile" file="Arena/scrapper/kreebosh the exile.xml"/>
<monster name="Kreebosh the Exile" file="Arena/scrapper/kreebosh the exile.xml"/>
@Up
lol haha xd
I've made this script works on tfs 0.3.1 patch2 in 10 minutes xd (+tests xd)
It's working in 100% without any bugs ;s
I have TFS 0.3b3 and i have the same error like Aragornik, but all another scripts are working perfectly...hmm maybe not all beacouse i can took a present and a backpack, not only one of this 2 prizes.
@Up
I had this same problem.
It's beacouse of your login.lua or check this post:
http://otland.net/209039-post213.html
@Gesior
Can you tell how to fix the problem with chests?
Look this posts:
http://otland.net/216066-post230.html
http://otland.net/220932-post231.html
Ps: 200 post
@Up
lol haha xd
I've made this script works on tfs 0.3.1 patch2 in 10 minutes xd (+tests xd)
It's working in 100% without any bugs ;s
Because nobody ask me?oO
what experienced you are!!!
gratz...
why do not you help the others to make it works too?
Do not come to apologyze yourself man...
¬¬
oO
what experienced you are!!!
gratz...
why do not you help the others to make it works too?
Do not come to apologyze yourself man...
¬¬
i talk with npc and when try to enter in teleport
Najpierw zabij potwora!
using mystic spirit and mysql