[Tutorial] Starter NPC

Status
Not open for further replies.
What I dont get is why all these servers still use the click on class image/link to get your welcome pack..

One Button Quest Starter NPC
Code:
;@@@@@@@@@@@@@@[ STARTER NPC ]
(quest (index 8750 1)
;       If quest already been done by player Stop!
	(case (if (clear 8750 1)) (then (html forbidden)))
;       If Player not used this quest then run quest 8750 2
	(case (then (link 8750 2))))

(quest (index 8750 2) (linked 1)
	;If class is not knight goto the next line
	(case (if (class 0)) (then (item (in 8900 0 1) (in 8901 0 1) (in 8902 0 1) (in 8903 0 1) (in 8904 0 1) (in 8905 0 1) (in 8906 93 1)    (in 337 0 1) (in 192 0 20) (in 193 0 20) (in 194 0 20) (in 195 0 20) (in 196 0 20) 	(in 470 0 1) (in 474 0 1) (in 4004 0 100) (in 4007 0 100) (in 4018 0 20)  ) (clear 8750 1) (html thankyou)))
	;If class is not archer then goto the next line
	(case (if (Class 2)) (then (item (in 8907 0 1) (in 8908 0 1) (in 8909 0 1) (in 8910 0 1) (in 8911 0 1) (in 8912 93 1)                  (in 339 0 1) (in 192 0 20) (in 193 0 20) (in 194 0 20) (in 195 0 20) (in 196 0 20) 	(in 470 0 1) (in 474 0 1) (in 4004 0 100) (in 4007 0 100) (in 4018 0 20)  ) (clear 8750 1) (html thankyou)))
	;Mage
	(case (if (Class 1)) (then (item (in 8913 0 1) (in 8914 0 1) (in 8915 0 1) (in 8916 0 1) (in 8917 0 1) (in 8918 93 1)                (in 338 0 1) (in 192 0 20) (in 193 0 20) (in 194 0 20) (in 195 0 20) (in 196 0 20) 	(in 470 0 1) (in 474 0 1) (in 4004 0 100) (in 4007 0 100) (in 4018 0 20)  ) (clear 8750 1) (html thankyou)))
	(case (then (html notmet)))
; When Quest Finished it marks the player as quest done an cant be done again
)

Simple.. quest thats looks to see what class you are then gives the class items :/
Once you done the quest to cant do it again.. :) Also the quest wont take the starter weapon like most starter NPCs do..

E.pk
Code:
(filechk file_ver (country_type ENG) (filename A))
(background
 (font 12) 
 (wrap 270)
 (link system ( param ( width 270) ( height 255) ( style title edge system vscroll) ( caption "Talk") ( layout script) ))
)
( frame ( font 12)
 ( line "[b] Do you want to start?")
 ( line "")
 ( link ( text "Yes Thankyou") ( param send quest 8750 1 ))
 ( link close ( text "[Talk End] I dont wanna start!"))
)

Note: You will need to edit the items in the quest as its from my old server an some of the items are custom
 
Hi,

its been a long time I was active on kal privat servers but Im pretty sure I didnt made anything wrong. I dont see the NPC ingame also :mad: Whats wrong...?


Code:
[B]config.pk[/B]

( npcname 920     "PPS-Starter-NPC")  



[B]e.pk[/B]

(filechk file_ver (country_type ENG) (filename s000766))
(background
 (font 12) 
 (wrap 270)
 (link system ( param ( width 270) ( height 255) ( style title edge system vscroll) ( caption "Talk") ( layout script) ))
)
( frame ( font 12)
 ( line "[B] Welcome to PPS. Do you want to start?")
 ( line "")
 ( link ( text "Yes, and I'am a Knight!") ( param send quest 8703 4 ))
 ( link ( text "Yes, and I'am a Archer!") ( param send quest 8703 2 ))
 ( link ( text "Yes, and I'am a Mage!") ( param send quest 8703 3 ))
 ( link close ( text "[Talk End] I don't wanna start!"))
)


[B]InitNPC[/B]

;starter npc
(gennpc (index 920) (country 0) (kind 0) (shape 39) (html 766) (map 0) (xy 257414 259100 16080) (dir 57258 7717))



[B]Quest[/B]

;Starter NPC
;Knight starter
(quest (index 8703 4)
(case (if (class 0) (item (1 1)))
(then (contribute 70) (supoint 77)(item (out 1 1)(in 102 1 1)(in 117 0 1)(in 118 0 1)(in 119 0 1)(in 120 0 1)(in 121 0 1)(in 30 0 1)(in 48 0 5000)(in 473 0 1)(in 2319 0 10)(in 337 0 1)(in 192 0 100)(in 193 0 100)(in 194 0 100)(in 195 0 100)(in 196 0 100)(in 447 0 200)(in 485 0 100)) ))
(case (then (html 766)))
)
;Archer starter
(quest (index 8703 2)
(case (if (class 2) (item (22 1)))
(then (contribute 70) (supoint 77)(item (out 22 1)(in 108 41 1)(in 122 0 1)(in 123 0 1)(in 124 0 1)(in 125 0 1)(in 126 0 1)(in 48 0 5000)(in 473 0 1)(in 2319 0 10)(in 339 0 1)(in 192 0 100)(in 193 0 100)(in 194 0 100)(in 195 0 100)(in 196 0 100)(in 447 0 200)(in 485 0 100)) ))
(case (then (html 766)))
)
;Mage starter
(quest (index 8703 3)
(case (if (class 1) (item (90 1)))
(then (contribute 70) (supoint 77) (item (out 90 1)(in 114 21 1)(in 127 0 1)(in 128 0 1)(in 129 0 1)(in 130 0 1)(in 131 0 1)(in 48 0 5000)(in 473 0 1)(in 2319 0 10)(in 338 0 1)(in 192 0 100)(in 193 0 100)(in 194 0 100)(in 195 0 100)(in 196 0 100)(in 447 0 200)(in 485 0 100)) ))
(case (then (html 766)))
)
 
InitNPC

;starter npc
(gennpc (index 920) (country 0) (kind 0) (shape 39) (html 766) (map 0) (xy 257414 259100 16080) (dir 57258 7717))
 
Hi,

its been a long time I was active on kal privat servers but Im pretty sure I didnt made anything wrong. I dont see the NPC ingame also :mad: Whats wrong...?


Code:
[B]config.pk[/B]

( npcname 920     "PPS-Starter-NPC")  



[B]e.pk[/B]

(filechk file_ver (country_type ENG) (filename s000766))
(background
 (font 12) 
 (wrap 270)
 (link system ( param ( width 270) ( height 255) ( style title edge system vscroll) ( caption "Talk") ( layout script) ))
)
( frame ( font 12)
 ( line "[B] Welcome to PPS. Do you want to start?")
 ( line "")
 ( link ( text "Yes, and I'am a Knight!") ( param send quest 8703 4 ))
 ( link ( text "Yes, and I'am a Archer!") ( param send quest 8703 2 ))
 ( link ( text "Yes, and I'am a Mage!") ( param send quest 8703 3 ))
 ( link close ( text "[Talk End] I don't wanna start!"))
)


[B]InitNPC[/B]

;starter npc
(gennpc (index 920) (country 0) (kind 0) (shape 39) (html 766) (map 0) (xy 257414 259100 16080) (dir 57258 7717))



[B]Quest[/B]

;Starter NPC
;Knight starter
(quest (index 8703 4)
(case (if (class 0) (item (1 1)))
(then (contribute 70) (supoint 77)(item (out 1 1)(in 102 1 1)(in 117 0 1)(in 118 0 1)(in 119 0 1)(in 120 0 1)(in 121 0 1)(in 30 0 1)(in 48 0 5000)(in 473 0 1)(in 2319 0 10)(in 337 0 1)(in 192 0 100)(in 193 0 100)(in 194 0 100)(in 195 0 100)(in 196 0 100)(in 447 0 200)(in 485 0 100)) ))
(case (then (html 766)))
)
;Archer starter
(quest (index 8703 2)
(case (if (class 2) (item (22 1)))
(then (contribute 70) (supoint 77)(item (out 22 1)(in 108 41 1)(in 122 0 1)(in 123 0 1)(in 124 0 1)(in 125 0 1)(in 126 0 1)(in 48 0 5000)(in 473 0 1)(in 2319 0 10)(in 339 0 1)(in 192 0 100)(in 193 0 100)(in 194 0 100)(in 195 0 100)(in 196 0 100)(in 447 0 200)(in 485 0 100)) ))
(case (then (html 766)))
)
;Mage starter
(quest (index 8703 3)
(case (if (class 1) (item (90 1)))
(then (contribute 70) (supoint 77) (item (out 90 1)(in 114 21 1)(in 127 0 1)(in 128 0 1)(in 129 0 1)(in 130 0 1)(in 131 0 1)(in 48 0 5000)(in 473 0 1)(in 2319 0 10)(in 338 0 1)(in 192 0 100)(in 193 0 100)(in 194 0 100)(in 195 0 100)(in 196 0 100)(in 447 0 200)(in 485 0 100)) ))
(case (then (html 766)))
)

Same problem 1st i think i find fix but it crash client =))
 
Last edited:
Unbenannt - [Tutorial] Starter NPC - RaGEZONE Forums can any one tell me whats wrong ?
 
Status
Not open for further replies.
Back