• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Random Battles - Converted

ZeuS

Respected Member
duel is only the prefix. You need to type the other parts too. duel by itself does nothing :)


So I should type : "duel in" ? is this what you meant ?

And no, those have nothing to do with the system itself. However some parts in your script are missing parts of code. Compare your line #24 to the original script line #24. It's missing a string.lower(), so on and so forth.

yes but interesting I copied whole code and didn't change anything in code , maybe I pushed "Delete" button by wrong .
 

Foereaper

Founder
Yes, when you type "duel in" , it'll show you how many have signed up from each faction. However you need the string lower checks for all of that to work properly.
 

Clastor

Enthusiast
Error

226e95633a.png
 

slp13at420

Mad Scientist
same error here and script not working :(

2016-12-15_11:17:01 ERROR lua_scripts/battle.lua:434: attempt to call global 'RegisterServerHook' (a nil value)

This is old and needs to be updated to the latest rev.

Tnx [MENTION=1960]Marko[/MENTION] the screenshot was to small to read .


'RegisterServerHook' isn't an Eluna Command anymore its `RegisterServerEvent `:

Code:
[COLOR="#808080"]
RegisterServerHook(28, RA_ENTER_ARENA)
RegisterServerHook(81, RA_REPOP_ARENA)
RegisterServerHook(18, RA_MSG_HOOK)
RegisterServerHook(80, RA_RESS_ARENA)
[/COLOR]

current available Server Events: http://eluna.emudevs.com/Global/RegisterServerEvent.html
 
Last edited:

Tommy

Founder
Look at the thread (script) date next time. The script, including server event Ids are pretty outdated, but don't forget you can look at Eluna API for all the needed documentation for Eluna.
 

Marko

Enthusiast
Thanks Tommy and slp13at420 , it seems this script is too outdated. simply replacing the RegisterServerHook with RegisterServerEvent did not fix it. Seems it is not so easy.
It is a shame many outdated scripts no longer work
 
Top