Solved Scripting help

Play Now

acer777

Banned
Banned
Veteran
Jul 28, 2010
299
1
45
Just started doing some scripts on heroes files and not too sure how to write the command on death of a mob.

on 2.3/ruby its normally

[@ONKILLMOB(DarkDevil)] etc

but it seems this doesnt work for heroes? any ideas?

thanks
 

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,202
65
135
uk
quit now :) lol ive spent weeks working with them and on heroes 1 failing variable seems to make them all fail.

I had a problem with varaibles erroring when using in qmanage isnewhum command so i just called the variables from another location which solved the issue.
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
If you lay out the qman rite there is no probs.

[@Login]
#IF
CHECK [451] 1
#ACT
Var Integer Human MultiKill1 0
LoadVar Human MultiKill1 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [452] 1
#ACT
Var Integer Human MultiKill2 0
LoadVar Human MultiKill2 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [453] 1
#ACT
Var Integer Human MultiKill3 0
LoadVar Human MultiKill3 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [454] 1
#ACT
Var Integer Human MultiKill4 0
LoadVar Human MultiKill4 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [455] 1
#ACT
Var Integer Human MultiKill5 0
LoadVar Human MultiKill5 ..\QuestDiary\Variables\Integral.txt
#ELSEACT
GOTO @1

[@1]
#IF
CHECK [456] 1
#ACT
Var Integer Human MultiKill6 0
LoadVar Human MultiKill6 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [457] 1
#ACT
Var Integer Human MultiKill7 0
LoadVar Human MultiKill7 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [458] 1
#ACT
Var Integer Human MultiKill8 0
LoadVar Human MultiKill8 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [459] 1
#ACT
Var Integer Human MultiKill9 0
LoadVar Human MultiKill9 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [460] 1
#ACT
Var Integer Human MultiKill9 0
LoadVar Human MultiKill9 ..\QuestDiary\Variables\Integral.txt
#ELSEACT
GOTO @2

[@2]
#IF
CHECK [446] 1
#ACT
Var Integer Human MultiKill10 0
LoadVar Human MultiKill10 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [447] 1
#ACT
Var Integer Human MultiKill11 0
LoadVar Human MultiKill11 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [448] 1
#ACT
Var Integer Human MultiKill12 0
LoadVar Human MultiKill12 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [449] 1
#ACT
Var Integer Human MultiKill13 0
LoadVar Human MultiKill13 ..\QuestDiary\Variables\Integral.txt
#IF
CHECK [450] 1
#ACT
Var Integer Human MultiKill14 0
LoadVar Human MultiKill14 ..\QuestDiary\Variables\Integral.txt
 
Upvote 0

acer777

Banned
Banned
Veteran
Jul 28, 2010
299
1
45
but i need it to act after it etc not as a quest.

for example on 2.3 would be like this:

[@ONKILLMOB(DarkDevil)]
#IF
#ACT
Give DarkDevilHorn <---- example of wat i want to do doesnt matter about if this script is correct or not just need it so
when i kill the mob it then acts wat i wont to do next in 2.3 files this would be in QFunction but does heroes files have a similar command?

(dont want it as a quest just straight up kill the mob you get something or it does a say command etc if possible is there any command for it?)
 
Last edited:
Upvote 0

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,202
65
135
uk
@acer just use the mapquest its simple and im pretty sure the files dont have that command...
example..

in mapquest.txt
Code:
D2013      [200]    1     DarkDevil	*               Q200

in Envir\MapQuest_def create a txt file called Q200
Code:
[@main]
#IF
CHECK [200] 1
#ACT
Give DarkDevilHorn 1
Your have to turn the flag 200 on on a npc or what ever.

@diablo in qmanage you can call files by..
Code:
[@Login]
#CALL [\\Calls\variables.txt] @vars
then create a folder in Envir\QuestDiary called Calls and a txt in that folder called variables.txt and in that...
Code:
[@vars]
{
#ACT
Var Integer HUMAN BoneFighter
LoadVar HUMAN BoneFighter ..\QuestDiary\Variables\Integral.txt

}
You can place all the variables in there, you can also use it for many other stuff keeps it tidy and easy to find etc.

Edit : didn't know you could do that milo thx.
 
Last edited:
Upvote 0