Small prob (NPC)

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
150
Chorley
Can you tell me whats wroung plz ....




@@Sendmsg

[@PlayLevelUp]
#if
checkjob warrior
CHECKLEVELEX = 12
#act
give fencing 1
SENDMSG 7 Information:GOOD_LUCK_and_Happy_Hunting...
break
 

GuildWars

Dedicated Member
Dedicated Member
Sep 28, 2004
164
0
62
Code:
(@@Sendmsg)
[@PlayLevelUp]
#IF
CHECKLEVELEX = 7
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 8
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 9
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 10
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 11
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 12
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 13
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 14
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 15
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 16
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 17
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 18
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 19
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 20
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 21
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 22
#ACT
SENDMSG 6 "Congratulations on your levelup"

Is what I have inside my qfunction-0.txt.. try that and see if it works :) .. i dunno if the sendmsg's go up to 7 n that might be your prob. but i dunno...
 
Upvote 0

lifco

Untrusted Member
Legendary
Golden Oldie
Loyal Member
Jul 6, 2004
3,400
66
195
UK/Italy
you dont need to do it that way only is say every 5 level something changes

lif
 
Upvote 0

jamiedotco

Dedicated Member
Dedicated Member
Nov 16, 2006
140
0
62
Code:
(@@Sendmsg)
[@PlayLevelUp]
#IF
CHECKLEVELEX = 7
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 8
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 9
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 10
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 11
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 12
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 13
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 14
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 15
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 16
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 17
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 18
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 19
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 20
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 21
#ACT
SENDMSG 6 "Congratulations on your levelup"
#IF
CHECKLEVELEX = 22
#ACT
SENDMSG 6 "Congratulations on your levelup"

Is what I have inside my qfunction-0.txt.. try that and see if it works :) .. i dunno if the sendmsg's go up to 7 n that might be your prob. but i dunno...


This dont work on DM2, is it meant to?
 
Upvote 0

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
150
Chorley
Still not got it working :(


Will this work on DM2...

Qfuncition file

(@@Sendmsg)
[@PlayLevelUp]
#IF
CHECKLEVELEX = 12
#ACT
GIVE Fireball 1
#IF
CHECKLEVELEX = 12
#ACT
GIVE Healing 1
#IF
CHECKLEVELEX = 13
#ACT
GIVE MedArmour(M) 1
#IF
CHECKLEVELEX = 13
#ACT
GIVE MedArmour(F) 1
 
Upvote 0

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
195
eg

[@PlayLevelUp]
#IF
CHECKLEVELEX = 12
#ACT
GIVE Fireball 1
break
#IF
CHECKLEVELEX = 12
#ACT
GIVE Healing 1
break
 
Upvote 0

Onuris

LOMCN Veteran
Veteran
May 23, 2006
468
0
63
Romania, Timisoara
Try this

Code:
(@@Sendmsg)
[@PlayLevelUp]
#IF
checklevelex = 12
#ACT
goto @level12

[@level12]
#IF
gender male
#ACT
goto @male
#ELSEACT
goto @female

[@male]
#IF
checkjob wizard
#ACT
goto @wizardm
#ELSEACT
goto @level121

[@level121]
#IF
checkjob taoist
#ACT
goto @taoistm
#ELSEACT
goto @warriorm

[@wizardm]
#ACT
GIVE Fireball 1
GIVE MedArmour(M) 1
break

[@taoistm]
#ACT
GIVE Healing 1
GIVE MedArmour(M) 1
break

[@warriorm]
#ACT
GIVE Fencing 1
GIVE MedArmour(M) 1
break

[@female]
#IF
checkjob wizard
#ACT
goto @wizardf
#ELSEACT
goto @level121

[@level121]
#IF
checkjob taoist
#ACT
goto @taoistf
#ELSEACT
goto @warriorf

[@wizardf]
 #ACT
 GIVE Fireball 1
 GIVE MedArmour(F) 1
break

[@taoistf]
#ACT
GIVE Healing 1
GIVE MedArmour(F) 1
break

[@warriorf]
#ACT
GIVE Fencing 1
GIVE MedArmour(F) 1
break

good luck
hope i didn't lost my coding knowledge :P haven't code for 6 months anymore
 
Upvote 0

Elvin

Golden Oldie
Golden Oldie
May 14, 2003
1,155
1
195
middlesex
Code:
(@storage @getback @@SendMsg )
100%
[@PlayLevelUp]
#if
checkjob warrior
gender man
CHECKLEVELEX = 30
Check [100] 0
#act
set [100] 1 
give 骷髅头盔 1
give 炼狱 1
give 龙之戒指 2
give 死神手套 2
give 幽灵项链 1
give 重盔甲(男) 1
give 攻击力药水 1
SENDMSG 7 Information:GOOD_LUCK_and_Happy_Hunting...
 
break
#if
checkjob warrior
gender WOMAN
CHECKLEVELEX = 30
Check [101] 0
#act
set [101] 1 
give 骷髅头盔 1
give 炼狱 1
give 龙之戒指 2
give 死神手套 2
give 幽灵项链 1
give 重盔甲(女) 1
give 攻击力药水 1
SENDMSG 7 Information:GOOD_LUCK_and_Happy_Hunting...
 
break
#if
checkjob taoist
gender man
CHECKLEVELEX = 30
Check [102] 0
#act
set [102] 1 
give 道士头盔 1
give 银蛇 1
give 铂金戒指 2
give 心灵手镯 2
give 天珠项链 1
give 黄色药粉(大量)
give 灰色药粉(大量)
give 灵魂战衣(男) 1
give 道术力药水 1
SENDMSG 7 Information:GOOD_LUCK_and_Happy_Hunting...
 
break
#if
checkjob taoist
gender WOMAN
CHECKLEVELEX = 30
Check [103] 0
#act
set [103] 1 
give 道士头盔 1
give 银蛇 1
give 铂金戒指 2
give 心灵手镯 2
give 天珠项链 1
give 黄色药粉(大量)
give 灰色药粉(大量)
give 灵魂战衣(女) 1
give 道术力药水 1
SENDMSG 7 Information:GOOD_LUCK_and_Happy_Hunting...
 
break
#if
checkjob wizard
gender man
CHECKLEVELEX = 30
Check [104] 0
#act
set [104] 1 
give 道士头盔 1
give 魔杖 1
give 红宝石戒指 2
give 思贝儿手镯 2
give 生命项链 1
give 魔法长袍(男) 1
give 魔法力药水 1
SENDMSG 7 Information:GOOD_LUCK_and_Happy_Hunting...
 
break
#if
checkjob wizard
gender WOMAN
CHECKLEVELEX = 30
Check [105] 0
#act
set [105] 1 
give 道士头盔 1
give 魔杖 1
give 红宝石戒指 2
give 思贝儿手镯 2
give 生命项链 1
give 魔法长袍(女) 1
give 魔法力药水 1
SENDMSG 7 Information:GOOD_LUCK_and_Happy_Hunting...
this is in qfunction in market_def and works on a chinese set of files dunno if its any help to you tho as its basically fromn 1.85/hero system.
it also uses flags i believe
 
Upvote 0

jamiedotco

Dedicated Member
Dedicated Member
Nov 16, 2006
140
0
62
I am using the command

CHECKLEVELEX= 12
eg

#if
checkjob Wizard
CHECKLEVELEX = 12
#act
give repulsion 1
break

Woks fine, for DM2 servers :)
 
Upvote 0