|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Quests::Q&A This is the quest support section |
02-23-2013, 09:22 AM
|
Sarnak
|
|
Join Date: Oct 2007
Posts: 78
|
|
Thanks man you rock
|
02-23-2013, 09:49 AM
|
Sarnak
|
|
Join Date: Oct 2007
Posts: 78
|
|
Thanks man you rock
|
02-23-2013, 10:38 AM
|
Sarnak
|
|
Join Date: Oct 2007
Posts: 78
|
|
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");
|
02-23-2013, 11:29 AM
|
|
Dragon
|
|
Join Date: Dec 2009
Posts: 719
|
|
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;
|
02-23-2013, 03:56 PM
|
Sarnak
|
|
Join Date: Oct 2007
Posts: 78
|
|
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
|
02-23-2013, 04:04 PM
|
Discordant
|
|
Join Date: Jan 2013
Posts: 284
|
|
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.
|
02-23-2013, 04:23 PM
|
|
Dragon
|
|
Join Date: Dec 2009
Posts: 719
|
|
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;
|
02-23-2013, 05:50 PM
|
Sarnak
|
|
Join Date: Oct 2007
Posts: 78
|
|
Thanks for the help guys will try that out
|
02-23-2013, 05:50 PM
|
Discordant
|
|
Join Date: Jan 2013
Posts: 284
|
|
You're welcome. May I ask if your server is public or privately hosted?
|
02-23-2013, 08:02 PM
|
Sarnak
|
|
Join Date: Oct 2007
Posts: 78
|
|
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.
|
02-23-2013, 08:28 PM
|
Discordant
|
|
Join Date: Jan 2013
Posts: 284
|
|
I had Road Runner, they're pretty good, I just hate their router setup, what is the name of your server, sir?
|
02-23-2013, 08:31 PM
|
Sarnak
|
|
Join Date: Oct 2007
Posts: 78
|
|
FBT double xp no charge buffbot
|
02-23-2013, 08:57 PM
|
Discordant
|
|
Join Date: Jan 2013
Posts: 284
|
|
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.
|
02-23-2013, 09:10 PM
|
Sarnak
|
|
Join Date: Oct 2007
Posts: 78
|
|
Im on now testing gambling bot and yes ROF should work
|
02-23-2013, 09:21 PM
|
Discordant
|
|
Join Date: Jan 2013
Posts: 284
|
|
Your server isn't allowing outside connections, is it port-forwarded correctly? 0.o
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 07:03 AM.
|
|
|
|
|
|
|
|
|
|
|
|
|