[NPC Script]QFunction

smoochy boys on tour

pompeii

Dedicated Member
Dedicated Member
Nov 3, 2004
92
0
53
yes indeed a good find, ive got gems/orbs and stuff working thanks to this.
 

Nightwolf

Developer
VIP
Jul 16, 2003
2,133
21
285
Manchester, UK
you can do few things in that file even something like eu mir when you lvl up also you can get it to ad points etc... like this

(@@sendmsg )

[@PlayLevelUp]
#IF
CHECKLEVELEX = 15
#ACT
BONUSPOINT + 1
SENDMSG 6 Congratulations!.your.level.is.up.HP/MP.are.all.recovered.
CREDITPOINT + 5
break
#IF
CHECKLEVELEX = 16
#ACT
BONUSPOINT + 1
SENDMSG 6 Congratulations!.your.level.is.up.HP/MP.are.all.recovered.
break
#IF
CHECKLEVELEX = 17
#ACT
BONUSPOINT + 1
SENDMSG 6 Congratulations!.your.level.is.up.HP/MP.are.all.recovered.
break
#IF
CHECKLEVELEX = 18
#ACT
BONUSPOINT + 1
SENDMSG 6 Congratulations!.your.level.is.up.HP/MP.are.all.recovered.
break
#IF
CHECKLEVELEX = 19
#ACT
BONUSPOINT + 1
SENDMSG 6 Congratulations!.your.level.is.up.HP/MP.are.all.recovered.
break
#IF
#ACT
BONUSPOINT + 1
SENDMSG 6 Congratulations!.your.level.is.up.HP/MP.are.all.recovered.

[@PlayDie]
#ACT
CALCVAR HUMAN RWSW + 1
SAVEVAR HUMAN RWSW ..\QuestDiary\DataFile\RWSWSave.txt

[@KillPlay]
#ACT
CALCVAR HUMAN RWSR + 1
SAVEVAR HUMAN RWSR ..\QuestDiary\DataFile\RWSRSave.txt


the reason i put . is it dont seem to like spaces when you do txt for sendmsg
 
Last edited:

slayzone

Dedicated Member
Dedicated Member
Oct 2, 2004
18
0
47
well i have tried both and texts and none work and i do have it in the right dir so thats not the probelem just wondering if there is meant to be something else with this to aid it to work
 

MentaL

Mir 1.4
VIP
Mar 3, 2004
3,667
371
375
Cardiff
Does that mean each map qfunction is used on has to be done?

like qfunction-d024 and such? is there a shortcut like qmanage to do it global?
 

AngelOfDeath

Dedicated Member
Dedicated Member
May 5, 2003
158
0
113
In Hell
MentaL said:
Does that mean each map qfunction is used on has to be done?

like qfunction-d024 and such? is there a shortcut like qmanage to do it global?


just have qfunction-0 in your market def folder and it will operate globaly
 

MentaL

Mir 1.4
VIP
Mar 3, 2004
3,667
371
375
Cardiff
Nightwolf said:
you can do few things in that file even something like eu mir when you lvl up also you can get it to ad points etc... like this

(@@sendmsg )

[@PlayLevelUp]
#IF
CHECKLEVELEX = 15
#ACT
BONUSPOINT + 1
SENDMSG 6 Congratulations!.your.level.is.up.HP/MP.are.all.recovered.
CREDITPOINT + 5
break
#IF
CHECKLEVELEX = 16
#ACT
BONUSPOINT + 1
SENDMSG 6 Congratulations!.your.level.is.up.HP/MP.are.all.recovered.
break
#IF
CHECKLEVELEX = 17
#ACT
BONUSPOINT + 1
SENDMSG 6 Congratulations!.your.level.is.up.HP/MP.are.all.recovered.
break
#IF
CHECKLEVELEX = 18
#ACT
BONUSPOINT + 1
SENDMSG 6 Congratulations!.your.level.is.up.HP/MP.are.all.recovered.
break
#IF
CHECKLEVELEX = 19
#ACT
BONUSPOINT + 1
SENDMSG 6 Congratulations!.your.level.is.up.HP/MP.are.all.recovered.
break
#IF
#ACT
BONUSPOINT + 1
SENDMSG 6 Congratulations!.your.level.is.up.HP/MP.are.all.recovered.

[@PlayDie]
#ACT
CALCVAR HUMAN RWSW + 1
SAVEVAR HUMAN RWSW ..\QuestDiary\DataFile\RWSWSave.txt

[@KillPlay]
#ACT
CALCVAR HUMAN RWSR + 1
SAVEVAR HUMAN RWSR ..\QuestDiary\DataFile\RWSRSave.txt


the reason i put . is it dont seem to like spaces when you do txt for sendmsg
Ok i made qfunction-0.txt in market_def and yet it doesnt work i pasted this exactly and no luck. ideas?
 

lifco

Untrusted Member
Legendary
Golden Oldie
Loyal Member
Jul 6, 2004
3,400
66
195
UK/Italy
you have to be say level 15 and say you lvl up to say 16 you get the msg on screen sayin Congratulations!.your.level.is.up.HP/MP.are.all.recovered

lif
 

Paul Lee

Dedicated Member
Dedicated Member
Sep 2, 2005
43
0
52
Seems strange that it is QFunction-0.txt and not just QFunction.txt

Has anyone tried making a QFunction-1.txt and changing something like source to 1?

Just an idea
 

lifco

Untrusted Member
Legendary
Golden Oldie
Loyal Member
Jul 6, 2004
3,400
66
195
UK/Italy
Paul Lee said:
Seems strange that it is QFunction-0.txt and not just QFunction.txt

Has anyone tried making a QFunction-1.txt and changing something like source to 1?

Just an idea

you dont need to make another txt, just add to that one if you want msgs to just out at you at key points just add it

lif
 

Paul Lee

Dedicated Member
Dedicated Member
Sep 2, 2005
43
0
52
lifco said:
you dont need to make another txt, just add to that one if you want msgs to just out at you at key points just add it

lif


It was a what if.. .............