Qmanage/Qfunction

Mu online season 21 - grand opening

craigj

LOMCN Veteran
Veteran
Jul 18, 2006
392
3
44
South Wales !!
Ok, im making a server right, i understand mostly everything about making a server but i am completely baffled with qmanage and qfunction, i know they can control a lot ingame, for e.g making titles etc which is what i wanna use it for i just dont know how.

I have searched but most threads have come up blank and dont explain the details of the Q's, so im asking for a thourough description on what they do, how they work and how i can do it.

Also im using 2.3 TD Files.

Thanks.
 

transporter

LOMCN Veteran
Veteran
Jul 12, 2008
608
8
105
Darlington
Ok, im making a server right, i understand mostly everything about making a server but i am completely baffled with qmanage and qfunction, i know they can control a lot ingame, for e.g making titles etc which is what i wanna use it for i just dont know how.

I have searched but most threads have come up blank and dont explain the details of the Q's, so im asking for a thourough description on what they do, how they work and how i can do it.

Also im using 2.3 TD Files.

Thanks.

Q-manage runs a script on login eg to set player titles etc.

Code:
[@Login]
#IF
CHECK [600] 1
#ACT
SETRANKLEVELNAME %s\-*Spell~Houler*-
#IF
CHECK [601] 1
#ACT
SETRANKLEVELNAME %s\-*War~Mage*-
#IF
CHECK [602] 1
#ACT
SETRANKLEVELNAME %s\-*Arbalester*-
#IF
CHECK [603] 1
#ACT
SETRANKLEVELNAME %s\-*BladeDancer*-
#IF
CHECK [604] 1
#ACT
SETRANKLEVELNAME %s\-*Gladiator*-

Q-funtion runs a script ingame eg: sub class scripts, @levelup, stdmodefuct, and mobkill quests.

Code:
[@LevelUp]
#IF
CHECKLEVELEX = 22
#ACT
sendmsg 3 " Has Reached Level 22, Congratulations!!"
#IF
CHECKLEVELEX = 40
#ACT
SENDMSG 3 " Has Reached Level 40, Congratulations!!"
#IF
CHECKLEVELEX = 50
#ACT
SENDMSG 3 " Has Reached Level 50, Congratulations!!"
#IF
CHECKLEVELEX = 60
#ACT
SENDMSG 3 " Has Reached Level 60, Congratulations!!"

[@stdmodefunc(number here)] useing FLD_Anicount and STDMode 31

Code:
[@stdmodefunc44]
#ACT
KILLMONEXPRATE 250 1800
sendmsg 6 "=*EXP-Rate x 2.5 for 30 minutes*="
Close

Code:
[@ONKILLMOB(OmaKingSpirit)]
#IF
CHECK [15] 1
#ACT
MESSAGEBOX "Thanks for killing the OKS, come see me for your prize."
SET [16] 1
SET [15] 0
break
#ELSEACT
break
 
Upvote 0

craigj

LOMCN Veteran
Veteran
Jul 18, 2006
392
3
44
South Wales !!
[@stdmodefunc(number here)] useing FLD_Anicount and STDMode 31


Code:
[@stdmodefunc44]#ACTKILLMONEXPRATE 250 1800sendmsg 6 "=*EXP-Rate x 2.5 for 30 minutes*="Close


I see so the anicount Number that you set for the item/mob in the DB is the number u use at the end of the command....( eg number 30)

Code:
[@stdmodefunc30]
#ACT
KILLMONEXPRATE 250 1800
sendmsg6 blahblahblah
close

Also

what is the number at the end of sendmsg for, if im right sendmsg6 is PM or to that player personally. and sendmsg 3 is global?
and if it is 3 for example would a global npc script be something along the line of this...

Code:
[@main]
Hello would you like to do a globalshout..?\
<Yes/@sendmsg 6>\
<No/@exit>\ \

Normally ingame you would click "do global shout" and a box would pop up.


Code:
[@ONKILLMOB(OmaKingSpirit)]
#IF
CHECK [15] 1
#ACT
MESSAGEBOX "Thanks for killing the OKS, come see me for your prize."
SET [16] 1
SET [15] 0
break
#ELSEACT
break

Why do you check 15 1 and then set 16 1 and set 15 0?

Thanks.
 
Last edited:
Upvote 0

akacary2

LOMCN Veteran
Veteran
Loyal Member
Dec 11, 2008
274
1
44
Hartlepool
Code:
[@ONKILLMOB(OmaKingSpirit)]
#IF
CHECK [15] 1
#ACT
MESSAGEBOX "Thanks for killing the OKS, come see me for your prize."
SET [16] 1
SET [15] 0
break
#ELSEACT
break

Why do you check 15 1 and then set 16 1 and set 15 0?

Thanks.

Its a mob kill quest... Quest is 2 kill OKS.
B4 u have killed OKS flag [15] would be 0 but after killing would b set to 1, therfore moving you onto the next part of the quest 2 claim your prize... flag [16] would then be set to 1 to allow you to claim your prize :)

Think im correct but not really sure as this is my first attempt at a server EVER lol
 
Upvote 0

Viper

LOMCN Veteran
Veteran
Feb 14, 2007
519
1
105
Newcastle
Its a mob kill quest... Quest is 2 kill OKS.
B4 u have killed OKS flag [15] would be 0 but after killing would b set to 1, therfore moving you onto the next part of the quest 2 claim your prize... flag [16] would then be set to 1 to allow you to claim your prize :)

Think im correct but not really sure as this is my first attempt at a server EVER lol


before killing the oks, flag 15 would be [1] (on). another NPC would turn it on to enable u to actually do the quest and get the reward.

when you killed it, 15 would be turned off [0] and a new flag would be introduced to cancel out you doing the quest again and getting the reward, in this case 16 is turned on [1]

(the original NPC can check if you have done the quest by looking at flag 16..)

thats the best way tbh:)
 
Last edited:
Upvote 0

Grinch

Dedicated Member
Dedicated Member
Dec 30, 2008
115
0
43
:tongue1:to the main question , the simple anwer is this 2 files work identicly like 1 NPC , but without fizical NPC in game.... very simple....:tongue1:
 
Upvote 0

akacary2

LOMCN Veteran
Veteran
Loyal Member
Dec 11, 2008
274
1
44
Hartlepool
before killing the oks, flag 15 would be [1] (on). another NPC would turn it on to enable u to actually do the quest and get the reward.

when you killed it, 15 would be turned off [0] and a new flag would be introduced to cancel out you doing the quest again and getting the reward, in this case 16 is turned on [1]

(the original NPC can check if you have done the quest by looking at flag 16..)

thats the best way tbh:)

Cheers m8 actually helped me out there 2 :thumbup:
 
Upvote 0