potinho
Advanced OT User
Hello guys,
I have a script who set a monster as "Monster of the day", and have a script to boost monster EXP. I want to set up (automatic) monster's image on my Gesior2012 layout, someone can help me?
This is the globalevent to set monster of day
This is how im setting up manually monster image
There's a way to put a script to change image every time script changes monster?
I have a script who set a monster as "Monster of the day", and have a script to boost monster EXP. I want to set up (automatic) monster's image on my Gesior2012 layout, someone can help me?
This is the globalevent to set monster of day
Lua:
function onStartup()
local BOOSTED_MONSTER = 56404
local boostedMonstersList = {"giant spider", "hydra", "warlock", "hero", "serpent spawn", "dragon lord", "frost dragon", "demon", "behemoth", "hero king", "red knight", "master warlock", "ancient gargoyle", "ancient dragon", "royal guard", "golden knight", "orshabaal", "demodras", "musashi swordsman", "fire sorcerer", "oriental knight", "perfect troll", "dracola", "undead plague", "cursed lion", "the old widow", "grim reaper", "war golem"}
local randomMonster = math.random(#boostedMonstersList)
setGlobalStorageValue(BOOSTED_MONSTER, randomMonster)
local spawn = {x = 155, y = 50, z = 7} -- monster spawn position
doCreateMonster(boostedMonstersList[randomMonster], spawn)
print("Today's boosted monster is: " .. boostedMonstersList[randomMonster])
end
This is how im setting up manually monster image
PHP:
<img id="Monster" src="outfit.php?id=290&addons=0&head=0&body=0&legs=0&feet=0" alt="Monster of the Day" />
There's a way to put a script to change image every time script changes monster?