globalshout, i cant figure it out ><

Join Discord

crazylegs

Dedicated Member
Dedicated Member
Jan 18, 2009
53
1
34
im making npc wich got loads of options with gamepoints and i got problem with my global shout

this is introduction part.
Code:
[@global]
#SAY
A global Shout Will Cost You 1 GamePoint\
<Sure No Problem!/@global1> - <No Thanks!/@exit>\

this is execution

Code:
[@global1]
#IF
GAMEPOINT =< 1
#ACT
GAMPOINT - 1
SETSENDMSGFLAG
LINEMSG 6 "Global shout executed!"
#ELSEACT
LINEMSG 6 "You dont have enough GamePoints to execute a GlobalShout!"

this should let people shout something they want over entire server.
 
Last edited:

Andreas

LOMCN Veteran
Veteran
Mar 12, 2008
2,695
21
145
Timisoara
(@@sendmsg)
[@global]
#SAY
A global Shout Will Cost You 1 GamePoint\
<Sure No Problem!/@global1> - <No Thanks!/@exit>\

on the top need to be ;)
 
Last edited:
Upvote 0

Killmaster

Legend
Legendary
Golden Oldie
Loyal Member
Nov 13, 2003
3,967
27
294
It should be

Code:
GAMEPOINT > 0

< Means under
> Means over
so > 0 would be over 0 which would check for 1 or higher.
 
Upvote 0

Weikster

LOMCN Veteran
Veteran
Jan 21, 2009
421
11
44
36th chamber
(@@sendmsg)
[@main]
A global Shout Will Cost You 1 GamePoint\
<Sure No Problem!/@global1> - <No Thanks!/@exit>\
[@global1]
#IF
GAMEPOINT > 0
#ACT
GAMEPOINT - 1
SETSENDMSGFLAG
LINEMSG 6 "Global shout executed!"
close
#ELSEACT
LINEMSG 6 "You dont have enough GamePoints to execute a GlobalShout!"
close

and don't forget this script needs to be in Market_Def
 
Last edited:
Upvote 0

crazylegs

Dedicated Member
Dedicated Member
Jan 18, 2009
53
1
34
It should be



Code:
GAMEPOINT > 0



< Means under

> Means over

so > 0 would be over 0 which would check for 1 or higher.

this gives me error in m2server.
Code:
[17-2-2009 2:56:46] Quest problem: GAMEPOINT >= 0 Row:68 Filename: .\Envir\Market_Def\GamePoint-extra.txt
[17-2-2009 2:56:46] Quest problem: GAMPOINT - 1 Row:70 FileName: .\Envir\Market_Def\GamePoint-extra.txt
[17-2-2009 2:56:46] Quest problem: GAMEPOINT > 0 Row:250 Filename: .\Envir\Market_Def\GamePoint-extra.txt
[17-2-2009 2:56:46] Quest problem: GAMEPOINT > 0 Row:262 Filename: .\Envir\Market_Def\GamePoint-extra.txt
[17-2-2009 2:56:46] Quest problem: GAMEPOINT > 0 Row:274 Filename: .\Envir\Market_Def\GamePoint-extra.txt
[17-2-2009 2:56:46] Quest problem: GAMEPOINT > 0 Row:286 Filename: .\Envir\Market_Def\GamePoint-extra.txt
[17-2-2009 2:56:46] Quest problem: GAMEPOINT > 0 Row:298 Filename: .\Envir\Market_Def\GamePoint-extra.txt
[17-2-2009 2:56:46] Quest problem: GAMEPOINT > 0 Row:310 Filename: .\Envir\Market_Def\GamePoint-extra.txt
[17-2-2009 2:56:46] Quest problem: GAMEPOINT > 1 Row:322 Filename: .\Envir\Market_Def\GamePoint-extra.txt
[17-2-2009 2:56:46] Quest problem: GAMEPOINT > 1 Row:334 Filename: .\Envir\Market_Def\GamePoint-extra.txt
[17-2-2009 2:56:46] Quest problem: GAMEPOINT > 1 Row:346 Filename: .\Envir\Market_Def\GamePoint-extra.txt
[17-2-2009 2:56:46] Quest problem: GAMEPOINT > 0 Row:358 Filename: .\Envir\Market_Def\GamePoint-extra.txt
[17-2-2009 2:56:46] Quest problem: GAMEPOINT > 1 Row:370 Filename: .\Envir\Market_Def\GamePoint-extra.txt
[17-2-2009 2:56:46] Quest problem: GAMEPOINT > 1 Row:382 Filename: .\Envir\Market_Def\GamePoint-extra.txt

this is in script file:

Code:
[@global1]
#IF
GAMEPOINT >= 0
#ACT
GAMPOINT - 1
SETSENDMSGFLAG
LINEMSG 6 "Global shout executed!"
close
#ELSEACT
LINEMSG 6 "You dont have enough GamePoints to execute a GlobalShout!"
close

[@bmorb]
#IF
GAMEPOINT > 0
#ACT
GIVE MagicOrb 1
GAMEPOINT - 1
LINEMSG 6 "<$USERNAME>. You got a MagicOrb. Goodluck!"
close
#ELSEACT
LINEMSG 6 "<$USERNAME>, You dont have enough GamePoints"
close

[@bsorb]
#IF
GAMEPOINT > 0
#ACT
GIVE SoulOrb 1
GAMEPOINT - 1
LINEMSG 6 "<$USERNAME>. You got a SoulOrb. Goodluck!!"
close
#ELSEACT
LINEMSG 6 "<$USERNAME>, You dont have enough GamePoints"
close

[@bborb]
#IF
GAMEPOINT > 0
#ACT
GIVE BraveryOrb 1
GAMEPOINT - 1
LINEMSG 6 "<$USERNAME>. You got a BraveryOrb. Goodluck!"
close
#ELSEACT
LINEMSG 6 "<$USERNAME>, You dont have enough GamePoints"
close

[@besorb]
#IF
GAMEPOINT > 0
#ACT
GIVE EvilSlayerOrb 1
GAMEPOINT - 1
LINEMSG 6 "<$USERNAME>. You got a EvilSlayerOrb. Goodluck!"
close
#ELSEACT
LINEMSG 6 "<$USERNAME>, You dont have enough GamePoints"
close

[@bporb]
#IF
GAMEPOINT > 0
#ACT
GIVE ProtectionOrb 1
GAMEPOINT - 1
LINEMSG 6 "<$USERNAME>. You got a ProtectionOrb. Goodluck!"
close
#ELSEACT
LINEMSG 6 "<$USERNAME>, You dont have enough GamePoints"
close

[@bagorb]
#IF
GAMEPOINT > 0
#ACT
GIVE AgilityOrb 1
GAMEPOINT - 1
LINEMSG 6 "<$USERNAME>. You got a AgilityOrb. Goodluck!"
close
#ELSEACT
LINEMSG 6 "<$USERNAME>, You dont have enough GamePoints"
close

[@bstorb]
#IF
GAMEPOINT > 1
#ACT
GIVE StormOrb 1
GAMEPOINT - 2
LINEMSG 6 "<$USERNAME>. You got a StormOrb. Goodluck!"
close
#ELSEACT
LINEMSG 6 "<$USERNAME>, You dont have enough GamePoints"
close

[@bpsorb]
#IF
GAMEPOINT > 1
#ACT
GIVE PoisonOrb 1
GAMEPOINT - 2
LINEMSG 6 "<$USERNAME>. You got a PoisonOrb. Goodluck!"
close
#ELSEACT
LINEMSG 6 "<$USERNAME>, You dont have enough GamePoints"
close

[@bfrorb]
#IF
GAMEPOINT > 1
#ACT
GIVE FreezingOrb 1
GAMEPOINT - 2
LINEMSG 6 "<$USERNAME>. You got a FreezingOrb. Goodluck!"
close
#ELSEACT
LINEMSG 6 "<$USERNAME>, You dont have enough GamePoints"
close

[@bdurorb]
#IF
GAMEPOINT > 0
#ACT
GIVE DurabilityOrb 1
GAMEPOINT - 1
LINEMSG 6 "<$USERNAME>. You got a DurabilityOrb. Goodluck!"
close
#ELSEACT
LINEMSG 6 "<$USERNAME>, You dont have enough GamePoints"
close

[@bdisorb]
#IF
GAMEPOINT > 1
#ACT
GIVE DisillusionOrb 1
GAMEPOINT - 2
LINEMSG 6 "<$USERNAME>. You got a DisillusionOrb. Goodluck!"
close
#ELSEACT
LINEMSG 6 "<$USERNAME>, You dont have enough GamePoints"
close

[@bendorb]
#IF
GAMEPOINT > 1
#ACT
GIVE EnduranceOrb 1
GAMEPOINT - 2
LINEMSG 6 "<$USERNAME>. You got a EnduranceOrb. Goodluck!"
close
#ELSEACT
LINEMSG 6 "<$USERNAME>, You dont have enough GamePoints"
close

(@@sendmsg)
[@main]
A global Shout Will Cost You 1 GamePoint\
<Sure No Problem!/@global1> - <No Thanks!/@exit>\
[@global1]
#IF
GAMEPOINT > 0
#ACT
GAMEPOINT - 1
SETSENDMSGFLAG
LINEMSG 6 "Global shout executed!"
close
#ELSEACT
LINEMSG 6 "You dont have enough GamePoints to execute a GlobalShout!"
close

and don't forget this script needs to be in Market_Def

Ah i didnt know. But can i do like the usual npc script inthere to ? Because im making very complicated npc with lots of options, i want to know if they all gunna work.

The Spelling problem is fixed its only i need to be able to check if the player has 1 gamepoint or more and same if player has 2 gamepoint or more etc etc
 
Last edited:
Upvote 0