Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 02-14-2015, 03:18 PM
xmimx1213
Fire Beetle
 
Join Date: Sep 2011
Location: Michigan
Posts: 2
Default Think I broke Absor

I was messing around on my server today trying to get Absor in tutorialb to give out epic 1.0's instead of the normal reward when u hand in a chink of bronze. Just a little preface I know nothing about scripting this is THE VERY FIRST THING I have tried to do (besides make myself a GM but that was easy ).

Anyway this is what i ended up with:

elsif (plugin::check_handin(\%itemcount, 54229 => 1)) {
#Chunk of Bronze -> Bronze Gloomingdeep weapons
quest::say("Now let me see... Ah ha! Here ya go! A much better weapon to help fend off those nasties!");
if($class eq 'Warrior'){quest::summonitem(66175)(10910)(10909); }
elsif($class eq 'Cleric'){quest::summonitem(5532);}
elsif($class eq 'Paladin'){quest::summonitem(10099);}
elsif($class eq 'Ranger'){quest::summonitem(2048(20487);}
elsif($class eq 'Shadowknight'){quest::summonitem(14383);}
elsif($class eq 'Druid'){quest::summonitem(20490);}
elsif($class eq 'Monk'){quest::summonitem(10652);}
elsif($class eq 'Bard'){quest::summonitem(20542);}
elsif($class eq 'Rogue'){quest::summonitem(11057);}
elsif($class eq 'Shaman'){quest::summonitem(10651);}
elsif($class eq 'Necromancer'){quest::summonitem(20544);}
elsif($class eq 'Wizard'){quest::summonitem(14341);}
elsif($class eq 'Magician'){quest::summonitem(28034);}
elsif($class eq 'Enchanter'){quest::summonitem(10650);}
elsif($class eq 'Beastlord'){quest::summonitem(8495)(8496);}
elsif($class eq 'Berserker'){quest::summonitem(68299);}


I have been testing him on fresh characters. Now he eats my regular dagger/sword instead of giving me a sharpened version and he also eats the chunk of bronze when I hand it to him... Ultimately the only thing I care about from Absor is him handing out the 1.0's.... I really want him to also hand out 1.5's for a chunk of iron but that will be after i figure out 1.0's any help would be very much appreciated!

Edit: there isnt a smiley face in my script its supposed to read 20488 ) lol
Reply With Quote
  #2  
Old 02-14-2015, 03:43 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

This is not how summoning multiple items is done:
Code:
if($class eq 'Warrior'){quest::summonitem(66175)(10910)(10909);  } 
elsif($class eq 'Ranger'){quest::summonitem(20488)(20487);} 
elsif($class eq 'Beastlord'){quest::summonitem(8495)(8496);}
This is how summoning multiple items is done:
Code:
if($class eq 'Warrior'){quest::summonitem(66175); quest::summonitem(10910); quest::summonitem(10909); }
elsif($class eq 'Ranger'){quest::summonitem(20488); quest::summonitem(20487);}
elsif($class eq 'Beastlord'){quest::summonitem(8495); quest::summonitem(8496);}
Reply With Quote
  #3  
Old 02-14-2015, 03:51 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

I highly recommend the use of
Code:
code brackets
when submitting code snippets.

Also, post your entire script so that it's integrity can be verified.

From the looks of your 'snippet,' you're probably missing a closing '}'

Remember: if you open something, you also have to close it
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #4  
Old 02-14-2015, 04:06 PM
xmimx1213
Fire Beetle
 
Join Date: Sep 2011
Location: Michigan
Posts: 2
Default

Thank you so much guys, that was so fast! I will be sure to use the brackets next time and will try and fix Absor right now. Thanks again incredible support.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:05 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3