Npc Scripts

Robert

Actual Jesus
VIP
Jan 1, 1970
4,652
97
104
Yes.
Hi, would like to know if these two npc scripts will work.

1. Should take the orb and be 100% craft:

[@main]
Welcome <$USERNAME>,I'm Dale.\
I'm the Youngest Hero of <$SERVERNAME>,\
Here if you have the Tools i will,\
UpGrade there item set! Will need a Orb.\
<Sure/@go1> <Exit/@exit>\

[@go1]
Please Stat your Class.\

Warrior <Craft/@next>\
Wizard <Craft/@next2>\
Taoist <Craft/@next4>\

[@next]
#IF
CheckJob Warrior
Checkitem Orb 1
#ACT
goto @next1
#ESLEACT
goto @wrong

[@next1]
#ACT
take Orb 1
UPGRADEITEMEX 5 2 0 1 1
UPGRADEITEMEX 7 2 0 1 1
UPGRADEITEMEX 3 2 0 1 1
UPGRADEITEMEX 1 0 0 8 1
UPGRADEITEMEX 0 2 0 1 1
goto @alldone


[@next2]
#IF
CheckJob Wizard
Checkitem Orb 1
#ACT
goto @next3
#ESLEACT
goto @wrong

[@next3]
#ACT
take Orb 1
UPGRADEITEMEX 5 3 0 1 1
UPGRADEITEMEX 7 3 0 1 1
UPGRADEITEMEX 3 3 0 1 1
UPGRADEITEMEX 1 1 0 8 1
UPGRADEITEMEX 0 3 0 1 1
goto @alldone

[@next4]
#IF
CheckJob Taoist
Checkitem Orb 1
#ACT
goto @next5
#ESLEACT
goto @wrong

[@next5]
#ACT
take Orb 1
UPGRADEITEMEX 5 4 0 1 1
UPGRADEITEMEX 7 4 0 1 1
UPGRADEITEMEX 3 4 0 1 1
UPGRADEITEMEX 1 2 0 8 1
UPGRADEITEMEX 0 4 0 1 1
goto @alldone

[@alldone]
You set Upgrade is Done!\


[@wrong]
Sorry your the Wrong Class!\
Or you do not have an Orb.\

2. Should take the gem and be variable craft:

[@main]
Welcome <$USERNAME>,I'm Dale.\
I'm the Youngest Hero of <$SERVERNAME>,\
Here if you have the Tools i will,\
UpGrade there item set!\
<Sure/@go1> <Whats Needed/@go2> <Exit/@exit>\

[@go2]
#Say
Make sure the have tools needed for your Class!\

Warrior :<Need/@help1>\
Wizard :<Need/@help2>\
Taoist :<Need/@help3>\

[@help1]
#say
You must have the following items,\
For your Class.\

1.Gem\

<Back/@main>

[@help2]
#say
You must have the following items,\
For your Class.\

1.Gem\


<Back/@main>

[@help3]
#say
You must have the following items,\
For your Class.\

1.Gem\


<Back/@main>


[@go1]
Please Stat your Class.\

Warrior <Caaft/@next>\
Wizard <Caaft/@next2>\
Taoist <Caaft/@next4>\

[@next]
#IF
CheckJob Warrior
Checkitem Gem 1
#ACT
goto @next1
#ELSEACT
goto @wrong

[@next1]
#ACT
take Gem 1

UPGRADEITEMEX 5 2 0 1 1
UPGRADEITEMEX 7 2 0 1 1
UPGRADEITEMEX 3 2 0 1 1
UPGRADEITEMEX 1 0 0 8 1
UPGRADEITEMEX 0 2 0 1 1
goto @alldone


[@next2]
#IF
CheckJob Wizard
Checkitem Gem 1
#ACT
goto @next3
#ELSEACT
goto @wrong

[@next3]
#ACT
take Gem 1

UPGRADEITEMEX 5 3 0 1 1
UPGRADEITEMEX 7 3 0 1 1
UPGRADEITEMEX 3 3 0 1 1
UPGRADEITEMEX 1 1 0 8 1
UPGRADEITEMEX 0 3 0 1 1
goto @alldone

[@next4]
#IF
CheckJob Taoist
Checkitem Gem 1
#ACT
goto @next5
#ELSEACT
goto @wrong

[@next5]
#ACT
take Gem 1

UPGRADEITEMEX 5 4 0 1 1
UPGRADEITEMEX 7 4 0 1 1
UPGRADEITEMEX 3 4 0 1 1
UPGRADEITEMEX 1 2 0 8 1
UPGRADEITEMEX 0 4 0 1 1
goto @alldone

[@alldone]
You set Upgrade is Done!\


[@wrong]
Sorry your the Wrong Class!\
Or you do not have a Gem.\

NOTE BOTH SHOULD NOT BE ABLE TO BE USED UNLESS THE ITEM IS PRESENT.

IF YOU COULD TAKE A LOOK THANX.


Edited by BH (all red)
that will work now

BH
 
Last edited by a moderator:

Ripman

LOMCN Developer
Developer
Jul 22, 2003
1,129
20
265
Romania, Timisoara
UPGRADEITEMEX 5 3 0 1 1
UPGRADEITEMEX 7 3 0 1 1
UPGRADEITEMEX 3 3 0 1 1
UPGRADEITEMEX 1 1 0 8 1
UPGRADEITEMEX 0 3 0 1 1

I colored what u need to change to be 100%
 
Upvote 0

pompeii

Dedicated Member
Dedicated Member
Nov 3, 2004
92
0
33
the third number was the chance of the item being destroyed, if its 100% set it to 0 and if you wanted it say at 40% set it at 4
 
Upvote 0

Babyhack

Devilsoul Owner
VIP
Feb 4, 2004
5,343
28
285
Dublin, Ireland
Its a very untidy script
half of the @next bits are not needed and can be added to the #act lines instead of having another goto @next

anyway I edited it so that it will check for the item then take it
if you want I can edit it fully and clean it up

@pompeii
please edit next time

BH
 
Upvote 0

Robert

Actual Jesus
VIP
Jan 1, 1970
4,652
97
104
Yes.
BH could you edit it fully please?

could somebody also calrify for me wot each number and row in the craft script means please?
 
Last edited:
Upvote 0

Babyhack

Devilsoul Owner
VIP
Feb 4, 2004
5,343
28
285
Dublin, Ireland
[@main]
Welcome <$USERNAME>,I'm Dale.\
I'm the Youngest Hero of <$SERVERNAME>,\
Here if you have the Tools i will,\
UpGrade there item set! Will need a Orb.\
<Sure/@go1> <Exit/@exit>\

[@go1]
Please Stat your Class.\

Warrior <Craft/@next>\
Wizard <Craft/@next2>\
Taoist <Craft/@next4>\

[@next]
#IF
CheckJob Warrior
Checkitem Orb 1
#ACT
take Orb 1
UPGRADEITEMEX 5 2 0 1 1
UPGRADEITEMEX 7 2 0 1 1
UPGRADEITEMEX 3 2 0 1 1
UPGRADEITEMEX 1 0 0 8 1
UPGRADEITEMEX 0 2 0 1 1
goto @alldone
#ESLEACT
goto @wrong

[@next2]
#IF
CheckJob Wizard
Checkitem Orb 1
#ACT
take Orb 1
UPGRADEITEMEX 5 3 0 1 1
UPGRADEITEMEX 7 3 0 1 1
UPGRADEITEMEX 3 3 0 1 1
UPGRADEITEMEX 1 1 0 8 1
UPGRADEITEMEX 0 3 0 1 1
goto @alldone
#ESLEACT
goto @wrong

[@next4]
#IF
CheckJob Taoist
Checkitem Orb 1
#ACT
take Orb 1
UPGRADEITEMEX 5 4 0 1 1
UPGRADEITEMEX 7 4 0 1 1
UPGRADEITEMEX 3 4 0 1 1
UPGRADEITEMEX 1 2 0 8 1
UPGRADEITEMEX 0 4 0 1 1
goto @alldone
#ESLEACT
goto @wrong

[@alldone]
You set Upgrade is Done!\

[@wrong]
Sorry your the Wrong Class!\
Or you do not have an Orb.\\
<Exit/@EXIT>

2
-------------------------------------------------------
[@main]
Welcome <$USERNAME>,I'm Dale.\
I'm the Youngest Hero of <$SERVERNAME>,\
Here if you have the Tools i will,\
UpGrade there item set! Will need a Orb.\
<Sure/@go1> <Exit/@exit>\

[@go1]
Please Stat your Class.\

Warrior <Craft/@next>\
Wizard <Craft/@next2>\
Taoist <Craft/@next4>\

[@next]
#IF
CheckJob Warrior
Checkitem Gem 1
#ACT
take Gem 1
UPGRADEITEMEX 5 2 0 1 1
UPGRADEITEMEX 7 2 0 1 1
UPGRADEITEMEX 3 2 0 1 1
UPGRADEITEMEX 1 0 0 8 1
UPGRADEITEMEX 0 2 0 1 1
goto @alldone
#ELSEACT
goto @wrong

[@next2]
#IF
CheckJob Wizard
Checkitem Gem 1
#ACT
take Gem 1
UPGRADEITEMEX 5 3 0 1 1
UPGRADEITEMEX 7 3 0 1 1
UPGRADEITEMEX 3 3 0 1 1
UPGRADEITEMEX 1 1 0 8 1
UPGRADEITEMEX 0 3 0 1 1
goto @alldone
#ELSEACT
goto @wrong

[@next4]
#IF
CheckJob Taoist
Checkitem Gem 1
#ACT
take Gem 1
UPGRADEITEMEX 5 4 0 1 1
UPGRADEITEMEX 7 4 0 1 1
UPGRADEITEMEX 3 4 0 1 1
UPGRADEITEMEX 1 2 0 8 1
UPGRADEITEMEX 0 4 0 1 1
goto @alldone
#ELSEACT
goto @wrong

[@alldone]
You set Upgrade is Done!\

[@wrong]
Sorry your the Wrong Class!\
Or you do not have a Gem.\
<Exit/@EXIT>
 
Upvote 0