Skills quest
So here a quest script i put together for a skill up NPC
http://pastebin.com/xFgexccX first day i set him up he worked perfect i tested him etc (level by level) and my skills went up now hes dead to the world when i run questerrors i get this script error: qst_npc_999248::EVENT_ITEM |
Syntax looks fine to me.
Code:
sub EVENT_SAY Code:
{ |
anyone any idea why this would not work? NPC responds to players and takes money but dose not give skills
|
you are using.. "setallskills" and it should just be.. "setallskill"
When you are stumped, best bet is to check the wiki. http://wiki.eqemulator.org/p?Ultimat...rence&frm=Main |
sooo this is now quest
sub EVENT_SAY { if($text =~/Hail/i) { quest::say("Greetings $name. If you want me to set your skills for you, please say so and I will give you my [pricelist]."); } if($text=~/pricelist/i) {quest::say("I can set all skills to the following skill levels : level 20 = 10 pp // level 40 = 40 pp // level 60 = 80 pp // level 80 = 160 pp // level 100 = 320 pp // level 120 = 640 pp // level 150 = 1280 pp // level 200 = 2560 pp // level 250 = 5000 pp");} } } sub EVENT_ITEM { if($platinum == 10) { quest::setallskill (20) ; } if($platinum == 40) { quest::setallskill (40); } if($platinum == 80) { quest::setallskill (60); } if($platinum == 160) { quest::setallskill (80); } if($platinum == 320) { quest::setallskill (100); } if($platinum == 640) { quest::setallskill (120); } if($platinum == 1280) { quest::setallskill (150); } if($platinum == 2560) { quest::setallskill (200); } if($platinum == 5000) { quest::setallskill (250); } } should all work? but itg dosnt ...he gobbles plat and gives no skills :S |
Getting it to where it is easier to read. Still responding to hails?
Code:
sub EVENT_SAY |
There was an extra }, try this:
Code:
sub EVENT_SAY { |
Such elegance you bring to otherwise crude and simple code, KK.
|
Yeah, just realized it didn't have saylinks so I added them. Not sure if making it more complex is elegant, but okay, haha.
|
So clicking the saylink for one of the options would take the money out of the character's inventory, as opposed to waiting for them to give it in a trade window. Clever and efficient, though likely less expected to the players.
|
Yeah, just the way I write things, it's more efficient to just take it all in one sweep.
|
King your awsome.... any idea on this one?
|
scratch that list bit... i completely bust second one so need to fix it
|
All times are GMT -4. The time now is 11:02 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.