在自己的传奇服务器中如何添加NPC [@main] #IF check [001] 1 #ACT goto @away break
#IF checklevel 255 #SAY Welcome <$USERNAME>.[BACKSLASH] I will give you items to suit your class :)[BACKSLASH] [BACKSLASH]
<Thanks/@next>[BACKSLASH] <Hmm no ta/@exit>[BACKSLASH]
#ELSESAY You do not appear to be the lord,[BACKSLASH] or his Companion![BACKSLASH] Go away![BACKSLASH] [BACKSLASH]
<Ok/@exit>
[@away] <$USERNAME>, why do you return so soon?[BACKSLASH] I have given you your items, what you did with them[BACKSLASH] is none of my concern, please leave, i have a bad head![BACKSLASH] [BACKSLASH]
<Sorry/@exit> :-( [BACKSLASH]
[@next] You will have to tell me your gender, i have poor eyesight[BACKSLASH] and poor hearing... [BACKSLASH] [BACKSLASH] <Male/@male>[BACKSLASH] <Female/@female>[BACKSLASH] <Some other time?/@exit>
[@male] #IF checkjob Warrior #ACT give DragonSlayer 1 give PowerRing 2 give GreenBead 1 give SteelArmour(m) give BlackIronHelm 1 give BlackIronGlove 2 give ParalysisRing 1 SET [001] 1 #SAY A big strong warrior such as you <$USERNAME>[BACKSLASH] should have these items![BACKSLASH]
<Thankyou!/@exit>
#ELSEACT goto @mwiz
[@mwiz] #IF checkjob wizard #ACT give DragonStaff 1 give DragonRobe(M) 1 give DragonBracelet 2 give DemonicBells 1 give SpiritRing 2 give VioletRing 2 give ProtectionRing 1 give RecoveryRing 1 SET [001] 1 #SAY You are a proud wizard <$USERNAME>, Take these items![BACKSLASH] [BACKSLASH]
<Thanks!/@exit>
#ELSEACT goto @mtao
[@mtao] #IF checkjob taoist #ACT give SoulSabre 1 give TitanArmour(M) 1 give TitanRing 2 give SoulBracelet 2 give SoulNecklace 1 give Amulet 5 SET [001] 1 #SAY Aha! a well trained taoist deserves these items![BACKSLASH] [BACKSLASH] <Thanks/@exit>
[@female] #IF checkjob Warrior #ACT give DragonSlayer 1 give PowerRing 2 give GreenBead 1 give SteelArmour(f) give BlackIronHelm 1 give BlackIronGlove 2 give ParalysisRing 1 SET [001] 1 #SAY A big strong warrior such as you <$USERNAME>[BACKSLASH] should have these items![BACKSLASH]
<Thankyou!/@exit>
#ELSEACT goto @fwiz
[@fwiz] #IF checkjob wizard #ACT give DragonStaff 1 give DragonRobe(f) 1 give DragonBracelet 2 give DemonicBells 1 give SpiritRing 2 give VioletRing 2 give ProtectionRing 1 give RecoveryRing 1 SET [001] 1 #SAY You are a proud wizard <$USERNAME>, Take these items![BACKSLASH] [BACKSLASH]
<Thanks!/@exit>
#ELSEACT goto @ftao
[@ftao] #IF checkjob taoist #ACT give SoulSabre 1 give TitanArmour(F) 1 give TitanRing 2 give SoulBracelet 2 give SoulNecklace 1 give Amulet 5 SET [001] 1 #SAY Aha! a well trained taoist deserves these items![BACKSLASH] [BACKSLASH] <Thanks/@exit>
Sorry, but for some reason this forum erases backslashes, copy this into note pad, then press ctrl+h (REPLACE) type in the search field "[BACKSLASH]" type in the replace with field (bah silly forum) "backslash", but not the word :-P then hit replace all.
that should be it done, u should see all [BACKSLASH] replaced b an actual backslash.
~EDITED~ = I made a booboo and posted the wrong version, this is the full complete version, now includes female items
IF ANYONE KNOWS HOW TO CHECK GENDER, PRAY TELL FELLOW AMIGO ;-)
Edited by notmeagain - Sep 27 2002, 09:03 PM
Lord Posted: Sep 28 2002, 11:07 AM
Lordie
Group: Members Posts: 94 Member No.: 127 Joined: 11-September 02
I just modified notmeagains script, so u can just copy and paste in the NPC file... thnx for helping ppl out ..
Script by: notmeagain
CODE
[@main] #IF check [001] 1 #ACT goto @away break
#IF checklevel 255 #SAY Welcome <$USERNAME>.\ I will give you items to suit your class :)\ <Thanks/@next><Hmm no ta/@exit> #ELSESAY You do not appear to be the lord,or his Companion!Go away!\ <Ok/@exit>
[@away] <$USERNAME>, why do you return so soon?I have given you your items, what you did with themis none of my concern, please leave, i have a bad head!\ <Sorry/@exit> :-( [@next] You will have to tell me your gender, i have poor eyesightand poor hearing... \ <Male/@male><Female/@female><Some other time?/@exit>
[@male] #IF checkjob Warrior #ACT give DragonSlayer 1 give PowerRing 2 give GreenBead 1 give SteelArmour(m) give BlackIronHelm 1 give BlackIronGlove 2 give ParalysisRing 1 SET [001] 1 #SAY A big strong warrior such as you <$USERNAME>should have these items! <Thankyou!/@exit>
#ELSEACT goto @mwiz
[@mwiz] #IF checkjob wizard #ACT give DragonStaff 1 give DragonRobe(M) 1 give DragonBracelet 2 give DemonicBells 1 give SpiritRing 2 give VioletRing 2 give ProtectionRing 1 give RecoveryRing 1 SET [001] 1 #SAY You are a proud wizard <$USERNAME>, Take these items!\ <Thanks!/@exit>
#ELSEACT goto @mtao
[@mtao] #IF checkjob taoist #ACT give SoulSabre 1 give TitanArmour(M) 1 give TitanRing 2 give SoulBracelet 2 give SoulNecklace 1 give Amulet 5 SET [001] 1 #SAY Aha! a well trained taoist deserves these items!\ <Thanks/@exit>
[@female] #IF checkjob Warrior #ACT give DragonSlayer 1 give PowerRing 2 give GreenBead 1 give SteelArmour(f) give BlackIronHelm 1 give BlackIronGlove 2 give ParalysisRing 1 SET [001] 1 #SAY A big strong warrior such as you <$USERNAME>should have these items! <Thankyou!/@exit>
#ELSEACT goto @fwiz
[@fwiz] #IF checkjob wizard #ACT give DragonStaff 1 give DragonRobe(f) 1 give DragonBracelet 2 give DemonicBells 1 give SpiritRing 2 give VioletRing 2 give ProtectionRing 1 give RecoveryRing 1 SET [001] 1 #SAY You are a proud wizard <$USERNAME>, Take these items!\ <Thanks!/@exit>
#ELSEACT goto @ftao
[@ftao] #IF checkjob taoist #ACT give SoulSabre 1 give TitanArmour(F) 1 give TitanRing 2 give SoulBracelet 2 give SoulNecklace 1 give Amulet 5 SET [001] 1 #SAY Aha! a well trained taoist deserves these items!\ <Thanks/@exit>
免责声明:57sf.com登载此文出于传递更多信息之目的,并不意味着57sf.com赞同其观点或证实其描述
|