Custom race/class quest
If I was wanting to create a NPC strictly for barbarians to change classes, (getting rid of berserker and adding ranger), how would I do this? My first experiment failed, as the npc will allow any race and class to change to one of the four classes, and there is no change in his dialogue. (was hoping he would tell an erudite for example to go find his own race etc)
If anyone would help me out, correct my mistakes, I would greatly appreciate it. Thank you in advance =) Code:
############# |
completely untested, but you had a couple logic errors and a double $$ one time.
Code:
sub EVENT_SAY |
Hrmm, didn't notice the $$ (was copy/pasting a bit).. Thx for pointing mistakes out =)
It honestly works just like it did before tho, allows any race/class to change and no difference in text being any race. Was hoping he'd only talk to me if i was a barb pretty much. |
Ok, after playing with it for a few minutes, I got him to respond to hail accordingly, (telling me to look for my race if anything but barbarian), but if I just say "warrior", he still changes me, regardless of race..
Code:
sub EVENT_SAY |
You have a class check for the hail response, but no class check on any of the other options. That's why anyone can say the proper word and change class.
That also seems like a rather roundabout way of limiting the class, but that's up to you. |
I agree on the roundabout thing.. (first time I've ever messed with scripting) Working on setting the class checks now, but somewhere I missed something and npc changed my class upon hailing so starting over..
I originally wanted 1 npc that could change race/class dependent on what I want, not every race/class. (ie, barb = rogue/war/shm/rang, de = bard etc) Would you happen to know how to accomplish this? Well, got it working now =) Thx for shoving me in the right directions I was needing. |
Go back to my script and change the race check to use 'eq' instead of '=='?
I've barely started pkaying with quests myself so my code syntax may be wrong. But the logic in mine should wrap everything in the barbarian if statement. |
All times are GMT -4. The time now is 05:37 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.