QFunction Help

Mu online season 21 - grand opening

Dookie

LOMCN Veteran
Veteran
Aug 5, 2004
294
1
45
Hi.

This is probably somthing very obvious, but....

I've searched for this but didn't find anything of great use. I am trying to make a gemming system using QFunctions. I have managed to get the MC one working, the MCGem when clicked opens the MCGem script and all items can be gemmed with MC.

I then used the same priciple for DC and SC gems but everytime i use a them it loads the MCGem.txt rather than the SC or DCGem.txt's

Below is what is in my QFunctions-0.txt:

Code:
()
%100
;=======================================================
;MCGem Script anicount 2
[@StdModeFunc2]
#ACT
#CALL [\Market\MCGem.txt]  @mcgemmain
;=======================================================
;DCGem Script anicount 3
[@StdModeFunc3]
#ACT
#CALL [\Market\DCGem.txt]  @dcgemmain
;=======================================================
;DCGem Script anicount 4
[@StdModeFunc4]
#ACT
#CAll [\Market\SCGem.txt]  @scgemmain

MCGem in the database has a anicount of 2
DCGem in the database has a anicount of 3
SCGem in the database has a anicount of 4

The text documents in \Market are as they should be (MC, DC, SCGem.txt)

I'm out of ideas, so any help would be greatly apprieciated. I'll check the thread tommorow morning.

Thanks in advance.
-Dookie
 

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
175
ok first most obvious mistake to check, make sure that the scripts you are calling arent all adding MC, if you did a simple copy and paste and forgot to edit it
 
Upvote 0

Dookie

LOMCN Veteran
Veteran
Aug 5, 2004
294
1
45
MC for Armour:

Code:
[@arm]
#ACT
UPGRADEITEMEX 0 3 2 1 1
goto @end


DC for Armour:

Code:
[@arm]
#ACT
UPGRADEITEMEX 0 2 2 1 1
goto @end


SC for Armour:

Code:
[@arm]
#ACT
UPGRADEITEMEX 0 4 2 1 1
goto @end


I think thats right, i edited it according to other examples i had.

-Dookie
 
Upvote 0

JSB123

LOMCN Veteran
Veteran
Aug 7, 2004
370
0
43
S.Yorkshire
I have had the same problem for 1 script, stdmode30, but never for mulpitple scripts. Like fire said, double check all your pathways and names, and if all else fails, just write a #say in each func like so...

()
%100
;=======================================================
;MCGem Script anicount 2
[@StdModeFunc2]
#SAY
StdModeFunc2
;=======================================================
;DCGem Script anicount 3
[@StdModeFunc3]
#SAY
StdModeFunc3
;=======================================================
;DCGem Script anicount 4
[@StdModeFunc4]
#SAY
StdModeFunc4


And try and trace the problem that way. If that shows no errors, put the script in the QFunc instead of calling it, as thats what cured my Stdmode30 problem.
 
Upvote 0

hassis

Dedicated Member
Dedicated Member
Mar 16, 2006
95
0
33
m8 PUT THIS ON your qfuncton txt end ceange on stmode on your DB
Code:
[@StdModeFunc50]
#ACT
UPGRADEITEMEX 0 0 3 3 1
UPGRADEITEMEX 0 1 3 3 1
break
[@StdModeFunc51]
#ACT
UPGRADEITEMEX 1 2 3 5 1
break
[@StdModeFunc52]
#ACT
UPGRADEITEMEX 3 4 3 2 1
break

[@StdModeFunc53]
#ACT
UPGRADEITEMEX 7 4 3 2 1
break
[@StdModeFunc54]
#ACT
UPGRADEITEMEX 5 4 3 2 1
break
[@StdModeFunc55]
#ACT
UPGRADEITEMEX 10 0 3 2 1
UPGRADEITEMEX 10 1 3 2 1
break
[@StdModeFunc56]
#ACT
UPGRADEITEMEX 11 0 3 2 1
UPGRADEITEMEX 11 1 3 2 1
break
[@StdModeFunc57]
#ACT
UPGRADEITEMEX 12 4 3 2 1
break
;WorArmourGem
[@StdModeFunc60]
#ACT
UPGRADEITEMEX 0 0 3 3 1
UPGRADEITEMEX 0 1 3 3 1
break
[@StdModeFunc61]
#ACT
UPGRADEITEMEX 1 0 3 5 1
break
[@StdModeFunc62]
#ACT
UPGRADEITEMEX 3 2 3 2 1
break

[@StdModeFunc63]
#ACT
UPGRADEITEMEX 7 2 3 2 1
break
[@StdModeFunc64]
#ACT
UPGRADEITEMEX 5 2 3 2 1
break
[@StdModeFunc65]
#ACT
UPGRADEITEMEX 10 0 3 2 1
UPGRADEITEMEX 10 1 3 2 1
break
[@StdModeFunc66]
#ACT
UPGRADEITEMEX 11 0 3 2 1
UPGRADEITEMEX 11 1 3 2 1
break
[@StdModeFunc67]
#ACT
UPGRADEITEMEX 12 2 3 2 1
break
[@StdModeFunc70]
#ACT
UPGRADEITEMEX 0 0 3 3 1
UPGRADEITEMEX 0 1 3 3 1
break
[@StdModeFunc71]
#ACT
UPGRADEITEMEX 1 1 3 5 1
break
[@StdModeFunc72]
#ACT
UPGRADEITEMEX 3 3 3 2 1
break

[@StdModeFunc73]
#ACT
UPGRADEITEMEX 7 3 3 2 1
break
[@StdModeFunc74]
#ACT
UPGRADEITEMEX 5 3 3 2 1
break
[@StdModeFunc75]
#ACT
UPGRADEITEMEX 10 0 3 2 1
UPGRADEITEMEX 10 1 3 2 1
break
[@StdModeFunc76]
#ACT
UPGRADEITEMEX 11 0 3 2 1
UPGRADEITEMEX 11 1 3 2 1
break
[@StdModeFunc77]
#ACT
UPGRADEITEMEX 12 3 3 2 1
break

This is all orb you need you onle ned too create the item in your Db & ceange in qfuncton.txt wit wat i give to you
 
Upvote 0

Dookie

LOMCN Veteran
Veteran
Aug 5, 2004
294
1
45
Ok, i might be making a simple mistake here. I only started looking a QFunctions yesterday, and didn't find much info on it.

Do all QFuction items have to be StdMode 31, and then the assigned script is determined by the anicount, e.g anicount 2 = [@StdModeFunc2] in the QFunction-0.txt. Correct?

Thanks.
-Dookie
 
Upvote 0

Dookie

LOMCN Veteran
Veteran
Aug 5, 2004
294
1
45
Ok, i've got that right then.

anicount 1 = Present - Item that generates another random item - works fine.
anicount 2 = MCGem - Adds MC to anyitem - works fine.
anicount 3 = DCGem - Adds DC to any item - loads the MCGem script.
anicount 4 = SCGem - Adds SC to any item - loads the MCGem script.

The thing is whichever script i set as anicount 2, the other two load that script instead of their own. It still does it even when i put the scripts directly into the QFunction-0.txt.

-Dookie
 
Upvote 0

hassis

Dedicated Member
Dedicated Member
Mar 16, 2006
95
0
33
ok y hev a simple qescion in emu server QFuction warck
[@StdModeFunc99]
#ACT
#CALL [\Market\Market5.txt] @Markets

or onli on daimond server ???
 
Upvote 0

Dookie

LOMCN Veteran
Veteran
Aug 5, 2004
294
1
45
qfunc3gq.jpg


Yep. >.<
 
Upvote 0

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
175
try following what JSB suggested.

replace your code with a simple #SAY command and see if they all still say MC, or whether or not they are saying DC, SC & MC
 
Upvote 0

Dookie

LOMCN Veteran
Veteran
Aug 5, 2004
294
1
45
Ok, done that. It works it loads the right scripts, anicout 2 = MC, anicount 3 = DC, etc.

What does that mean? It's a problem with my scripts?

-Dookie

EDIT - Fire check PM's please.
 
Upvote 0

Dookie

LOMCN Veteran
Veteran
Aug 5, 2004
294
1
45
Babyhack said:
Change the @arm to
@DCarm
@SCarm
@MCarm

I dont feel like going into the details of why it acts the way it does just trust me

BH

Thats the one!

Change every tag in each script to [@DCblah], [@SCBlah], [@MCBlah] respectily. Works like a gem (No pun intended :P )

Thanks for all the help guys.

-Dookie
 
Upvote 0

stephenking

I HAVE A DREAM!!
Developer
Aug 28, 2005
616
39
155
Netherlands
also most of the times if you CALL a file your called file needs {}

example


Code:
[COLOR=red]{[/COLOR]
[@main]
you are going for my example.\\\
ok/@okex
 
[@okex]
#IF
checklevel 30
#SAY
yes you are 30+.\
#ELSESAY
hahaha noob go away.\
[COLOR=red]}[/COLOR]

i noticed most of the times it doesnt read the script without the {brackets} tho only with files you #CALL

could be my m2server only lol dunno
just thought id share it
 
Upvote 0