• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Request] Working Svargrond Arena for 0.3.5

Bam

Active Member
Joined
Aug 11, 2007
Messages
1,442
Reaction score
39
Location
Sweden
Since the creatureevents got changed in 0.3.5 i am now asking if anyone have a new one ?
 
what has been changed?:| just registerEvent in login lua and that is all (maybe you need to change onKill(cid,target) to onKill(cid, target, lastHit))
 
what has been changed?:| just registerEvent in login lua and that is all (maybe you need to change onKill(cid,target) to onKill(cid, target, lastHit))



Code:
function onKill(cid, target, lastHit)
    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

What to fix ?
 
For starters;
Lua:
function onKill(cid, target, lastHit)
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 TRUE
end
 
Back
Top