GLOBAL var help

Mu online season 21 - grand opening

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
qman
#IF
check [721] 1
#ACT
Var Integer GLOBAL WT 0
LoadVar GLOBAL WT ..\QuestDiary\Variables\Integral.txt

qfun
[@onkillmob(WoomaTaurus)]
#IF
check [721] 1
#ACT
CalcVar Global WT + 1
SaveVar Global WT ..\QuestDiary\Variables\Integral.txt


but after killing a wt then login back to char screen and loggin back in it errors on the m2
 

paul.obrien

LOMCN Veteran
Veteran
Aug 28, 2008
453
4
45
qman
#IF
check [721] 1
#ACT
Var Integer GLOBAL WT 0
LoadVar GLOBAL WT ..\QuestDiary\Variables\Integral.txt

qfun
[@onkillmob(WoomaTaurus)]
#IF
check [721] 1
#ACT
CalcVar Global WT + 1
SaveVar Global WT ..\QuestDiary\Variables\Integral.txt


but after killing a wt then login back to char screen and loggin back in it errors on the m2

in the Qmanage just put this

[@Login]
#IF
#ACT
Var Integer GLOBAL WT 0
LoadVar GLOBAL WT ..../QuestDiary/Variables/Integral.txt (you had this the wrong way

put it right at the top of the Qmanage under [@Login]

that way it will load the viriable to the char if the have started using it already.
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
in the Qmanage just put this

[@Login]
#IF
#ACT
Var Integer GLOBAL WT 0
LoadVar GLOBAL WT ..../QuestDiary/Variables/Integral.txt (you had this the wrong way

put it right at the top of the Qmanage under [@Login]

that way it will load the viriable to the char if the have started using it already.
wow paul, you really do know nothing lol...

your totaly wrong btw, that'll still give an error in m2 every time some1 logs on :sad:
 
Upvote 0

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,202
65
135
uk
Do you no how to stop it spamming the m2 then bon? it is all working fine apart from spamming the m2 with

[20/10/2009 20:32:00] [QuestAction] ±äÁ¿wtKilledÒÑ´æÔÚ£¬±äÁ¿ÀàÐÍ:Global Command:VAR NPC:QManage Map:0(0:0) Param1:Integer Param2:Global Param3:wtKilled Param4: Param5: Param6:
 
Upvote 0

paul.obrien

LOMCN Veteran
Veteran
Aug 28, 2008
453
4
45
wow paul, you really do know nothing lol...

your totaly wrong btw, that'll still give an error in m2 every time some1 logs on :sad:

lol sorry to tell you ben but i use a hell of a lot of varibales and i never get a single error.
but thanks for been a **** once again.
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
lol sorry to tell you ben but i use a hell of a lot of varibales and i never get a single error.
but thanks for been a **** once again.
then you clearly dont know how global variables work...... if you do, help iceman out, show him how to do it properly

i assure u 100%, usin that script you posted, every time some1 logs on ud get a msg in the m2, wots funny is i bet u dont even know wot that error message means :crying:
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
ben i know u may not like him

but msn me give me alil i hate playing games to get help around here !

i come to you for help as i know u know wuts up
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
yer but it just annoys me ice how ppl ask/expect me to help when i get slagged off all the time, not referin to u as uve always been pretty ok with me, just certain ppl.

i wanna take a back seat and let the mighty pob solve this problem and explain to us all how global variables work as he said, he uses them all the time and gets no errors.
 
Upvote 0

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,202
65
135
uk
Dunno why you have to be so petty why it get to you so much ? lol nevermind i'm sure ice will figer it out. Would of been nice to of helped but not end of the world, were keep on trying through trial and error. Hope you enjoy your ever ongoing arguing with pob, enjoy ^^
 
Upvote 0

Liandrin2

Golden Oldie
Golden Oldie
Loyal Member
Jan 14, 2004
890
6
105
I'd like to know what causes the error messages, purely out of interest.

It's ages since I released how to use vars but I never did figure out what the m2 spam was all about.
 
Upvote 0

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,202
65
135
uk
Has it got something to do with global variables only need to be loaded once when the server is booted up not every time a player logs in?
 
Upvote 0

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,202
65
135
uk
[@Login]
#IF
ISADMIN
#ACT
Var Integer Global wtKilled
loadVar Global wtKilled ..\QuestDiary\Variables\Integral.txt
break

Ok think this works just aslong as admin dont kill wt :P
 
Last edited:
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
yea i got that working

now need to find a way to load them with a admin

thinking we need to use the reboot def
 
Last edited:
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
Has it got something to do with global variables only need to be loaded once when the server is booted up not every time a player logs in?
thats correct.

Globals only need to be loaded once, as they are not like human vars where they are only on the player.

so every time some1 logs in the m2 spams and goes no no dont load this its alrdy loaded!

Theres many ways you can do it, up to u to find the way that best suits you i guess :wink:

i dont get why your usinga global varabile for a "WT quest" tho.

is it some server quest, where you gotta kill 100 WTs and a lord spawns like wot we did?
 
  • Like
Reactions: -Luke-
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
they used for afew quest and keeping track of afew things

just gotta find out how to load them once :P

ben o buddy o pal can u pm me some ideas on how to load these once

i'm kinda lost at this
 
Last edited by a moderator:
Upvote 0