Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #16  
Old 02-23-2013, 09:22 AM
Dabloon
Sarnak
 
Join Date: Oct 2007
Posts: 78
Default

Thanks man you rock
Reply With Quote
  #17  
Old 02-23-2013, 09:49 AM
Dabloon
Sarnak
 
Join Date: Oct 2007
Posts: 78
Default

Thanks man you rock
Reply With Quote
  #18  
Old 02-23-2013, 10:38 AM
Dabloon
Sarnak
 
Join Date: Oct 2007
Posts: 78
Default

If i wanted the npc to give money equal to $random_result would it be something like

quest::givecash("0","0","0","1*$random_result");
Reply With Quote
  #19  
Old 02-23-2013, 11:29 AM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

there is no need to use quotations around numbers.
there is also no need to multiply a number by 1, since you just get the same number.
__________________
I muck about @ The Forge.
say(rand 99>49?'try '.('0x'.join '',map{unpack 'H*',chr rand 256}1..2):'incoherent nonsense')while our $Noport=1;
Reply With Quote
  #20  
Old 02-23-2013, 03:56 PM
Dabloon
Sarnak
 
Join Date: Oct 2007
Posts: 78
Default

The idea behind 1*$random_result is like say a player gives 1 platinum and the $random_result is 5 then the player would recieve 5 platinum. Basically 1*5.
Say they gave 2 platinum then it would be 2*$random_result and say the random was 5 the player would then recieve 10 platinum etc etc according to how much plat they gave
Reply With Quote
  #21  
Old 02-23-2013, 04:04 PM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

You would do this:
Code:
quest::givecash($copper*$random_result,$silver*$random_result,$gold*$random_result,$platinum*$random_result);
The way you have yours is a set value rather than how much platinum they actually gave the NPC.
Reply With Quote
  #22  
Old 02-23-2013, 04:23 PM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

you should also be aware that int(rand(10)) will only ever return 0 - 9.
if you want it to return 1 - 10, you need to use int(rand(10))+1.
__________________
I muck about @ The Forge.
say(rand 99>49?'try '.('0x'.join '',map{unpack 'H*',chr rand 256}1..2):'incoherent nonsense')while our $Noport=1;
Reply With Quote
  #23  
Old 02-23-2013, 05:50 PM
Dabloon
Sarnak
 
Join Date: Oct 2007
Posts: 78
Default

Thanks for the help guys will try that out
Reply With Quote
  #24  
Old 02-23-2013, 05:50 PM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

You're welcome. May I ask if your server is public or privately hosted?
Reply With Quote
  #25  
Old 02-23-2013, 08:02 PM
Dabloon
Sarnak
 
Join Date: Oct 2007
Posts: 78
Default

If by public you mean others can play on it then yes its public but its hosted here at my home on a road runner connection.
Reply With Quote
  #26  
Old 02-23-2013, 08:28 PM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

I had Road Runner, they're pretty good, I just hate their router setup, what is the name of your server, sir?
Reply With Quote
  #27  
Old 02-23-2013, 08:31 PM
Dabloon
Sarnak
 
Join Date: Oct 2007
Posts: 78
Default

FBT double xp no charge buffbot
Reply With Quote
  #28  
Old 02-23-2013, 08:57 PM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

Can you log on so we can play together? Also, is it RoF Compatible?

EDIT: Can't connect, I load for 5 minutes and disconnect.
Reply With Quote
  #29  
Old 02-23-2013, 09:10 PM
Dabloon
Sarnak
 
Join Date: Oct 2007
Posts: 78
Default

Im on now testing gambling bot and yes ROF should work
Reply With Quote
  #30  
Old 02-23-2013, 09:21 PM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default

Your server isn't allowing outside connections, is it port-forwarded correctly? 0.o
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 01:50 AM.


 

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