Begginer Scripter

Play Now

Lomcnviewer

Banned
Banned
Veteran
May 3, 2010
406
8
44
Right i have read some of the guides on phoeinx and finally decided to try and script, does this look alright? lol?
btw i have few questions first

If i done
"
#IF
checklevel 40000

#ACT
giveitem DelvlRing1
takelevel 10000
"
Will this be "takelevel", "changelevel" "delvl" etc? pls can tell me or give a list of some useful one's thxvm ;))
 

Lomcnviewer

Banned
Banned
Veteran
May 3, 2010
406
8
44
my script
;;; 3rd Basic NPC - Lomcnviewer ;;;
[@main]
#SAY
Hello <$USERNAME>, what can i do for you today?\
< Have you any quests for me? /@QuestsList>\
< I'm good.. /@Exit>

[@QuestsList]
#SAY
Yes, i have a list of quests here for you <$USERNAME>... please pick from the list below\
< HookerHell/@HookerHell\
< FleaMadness/@FleaMadness\
< CrustyStatue's/@Zuma\
< CrumbledRuins/@NR\
< Sorry i have no time../@Exit>

[@HookerHell]
#SAY
Hello <$USERNAME>.Do you have 10HookerScimitar's?\
< No.Where can i find this item?/@wheretrident\
< Yes.I have the scimitar's/@givetrident\
< Sorry.I dont have them at this time/@Exit>

[@wheretrident]
#SAY
This item can be obtained from killing HookingCats around town\
< Oki thanks, ill be back soon.../@Exit>

[@givetrident]
#IF
checkitem HookerScimitar 10
#Act
take HookerScimitar 10
givegold 100000
#Say
Thankyou very much, here take this little reward!\
<Thanks !/@Exit>

[@FleaMadness]
#SAY
Hello <$USERNAME>. Do you have 25FleaSkin's?\
<No. Where can i find this item?/@whereskin\
<Yes.I have the FleaSkin's/@giveskin\
<Sorry. I dont have them at this time/@Exit>

[@whereskin]
#SAY
The FleaSkin can be obtained from killing Flea's in FleaCave.\
< Oki thanks, ill be back soon/@Exit>

[@giveskin]
#IF
checkitem FleaSkin 25
#ACT
take FleaSkin 25
givegold 250000
#SAY
Thankyou very much, here take this little reward!\

[@Zuma]
#SAY
Hello <$USERNAME>. Do you have 50ZumaStatuePiece's?\
<No. Where can i find this item?/@wherestatue\
<Yes.I have the ZumaStatue's/@givestatue\
<Sorry. I dont have them at this time/@Exit>

[@wherestatue]
#SAY
The ZumaStatue Peice's can be obtained from killing BigRats and ZumaArchers in ZumaTemple.\
< Oki thanks, ill be back soon/@Exit>

[@givestatue]
#IF
checkitem ZumaStatuePiece 50
#ACT
take ZumaStatuePiece 50
givegold 500000
#SAY
Thankyou very much, here take this little reward!\

[@NR]
#SAY
Hello <$USERNAME>. Do you have 100Relic's?\
<No. Where can i find this item?/@wheredisk\
<Yes.I have the Relic's/@givedisk\
<Sorry. I dont have them at this time/@Exit>

[@wheredisk]
#SAY
The Relic's can be obtained from killing monsters in NumaRuins.\
< Oki thanks, ill be back soon/@Exit>

[@givedisk]
#IF
checkitem Relic 100
#ACT
take Relic 100
givegold 1000000
#SAY
Thankyou very much, here take this little reward!\
 
Upvote 0

mapadale

Guest
Right i have read some of the guides on phoeinx and finally decided to try and script, does this look alright? lol?
btw i have few questions first

If i done
"
#IF
checklevel 40000

#ACT
giveitem DelvlRing1
takelevel 10000
"
Will this be "takelevel", "changelevel" "delvl" etc? pls can tell me or give a list of some useful one's thxvm ;))

Here is a breakdown of a NPC script from your own.

#IF
CHECKLEVEL 40000
#ACT
HLSCRIPTCMD CHANGELEVEL - 10000
GIVE DelvlRing 1
#SAY
Thank you\
#ELSESAY
Sorry your not level 40000.\

Your second script is good
 
Upvote 0

Lomcnviewer

Banned
Banned
Veteran
May 3, 2010
406
8
44
oki thanks for feedback m8, i been tryin 2 work on a little harder script with cluescrolls. When i get around 2 finishing it i will uploadad 2 see wat u think, its rather long tho ><

P.S.
is there a way 2 script for an NPC to give a random item? like 1 in 6chance etc

thxvm for all feedback and help :))
 
Last edited:
Upvote 0

mapadale

Guest
oki thanks for feedback m8, i been tryin 2 work on a little harder script with cluescrolls. When i get around 2 finishing it i will uploadad 2 see wat u think, its rather long tho ><

P.S.
is there a way 2 script for an NPC to give a random item? like 1 in 6chance etc

thxvm for all feedback and help :))
Yes there is
 
Upvote 0

Lomcnviewer

Banned
Banned
Veteran
May 3, 2010
406
8
44
View attachment aproject.txt
View attachment skele2.txt
View attachment Skele2Challenge.txt
View attachment skeleEnd.txt


-EDIT- them lot i have done so far for the npc but there is 1piece tht wont upload due 2 it bein to big i think, ill upload it on rapid share.... please leave feedback on bits that are incorrect etc if you have time 2 read, can you tell me if this is advanced, intermediate or begginer stuff? im only begginer tho ;L .... P.S. can sum1 tell me how to script a npc to give a random item from list.... thanks vm again :)


k thxvm, jst checking b4 i finish my cluescroll script :D
btw how do i get npc to check map for monsters to spawn next lot? :)
thx agn for all feedback and help ;)

P.S. This is the script im trying 2 make, is it oki is the "Checkmap" and "mob" bit wrong?
 
Last edited:
Upvote 0

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
125
Manchester, UK
for spawning mons, you need to use a function as so:

#ACT
mongenp "3,126,255,1" WoomaGuardian3 50

Ok, broken down.
Map Number
X Co-ord on map
Y Co-ord on map
Spawn Radius
Mon Name
Quantity to spawn

It won't work in any other format.

To check if mons are alive, use
#IF
CHECKMONMAP (MAP NUMBER) (Mon to Check) (Quantity)

#ACT
give SkeleClue3 ;; Is that the actual item you would give? You need a quantity set, i.e. 1,2, etc or it won't work
move 3 PhantomForest 54 91 ; You don't need phantomforest name there, just the mapnumber, which is wrong anyway.

[@YC2]
#IF
checkitem SkeleClue2 ;; Need a quantity to check for.

#SAY
Please complete the challenge room for the next and last clue\
and then return to me to uncrack it\
Would you like to continue?\
<Yes please/@Move\
<No thanks/@Exit>

[@Move]
#ACT
takeitem SkeleClue2;; again need a quantity set or it will fail.
move XX SkeleQuestMap XX XX
 
Last edited:
Upvote 0

Lomcnviewer

Banned
Banned
Veteran
May 3, 2010
406
8
44
ahh kk thx fr picking these faults out and informing me, very greatful... will go threw all my scripts and change it :) ta

p.s. not bothered about the map's its just scripting atm, i can edit later on :p
 
Last edited:
Upvote 0