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

08-10-2007, 04:42 PM
|
Demi-God
|
|
Join Date: Jul 2006
Posts: 1,552
|
|
Holy crap! How did I never find that Wiki in a year of using the hell out of it? Thanks, man. I never even knew about all those questobjects (most I have done with quests really is fix things that were broken)
Wow, what a busy weekend you just created for me.
|

08-10-2007, 08:35 PM
|
Discordant
|
|
Join Date: Jun 2005
Posts: 286
|
|
lol. Yeah i've just been doing the most basic things with quests so far, wasn't till now that i needed more. So should "quest::SetCash(115, 30, 1, 0);" work? b/c it doesn't...
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
|

08-11-2007, 05:20 AM
|
Demi-God
|
|
Join Date: Jul 2006
Posts: 1,552
|
|
I'll see if I can look through the source today to see what's up. I am not very familiar with the whole perl/script part of the code though.
|

08-12-2007, 04:42 AM
|
 |
Demi-God
|
|
Join Date: May 2007
Location: b
Posts: 1,449
|
|
Easy way to do this is mincash and maxcash in the database. The values are in copper, so if you wanted all of that npc_type to drop between 100 and 300 plat, you'd use mincash value as 100 and maxcash as 300.
There's no need for perl, it's easier to do it in SQL.
Also, John, bleh added those recently, they are cut out from KMRA. Really neat commands.
|

08-12-2007, 10:51 AM
|
Discordant
|
|
Join Date: Jun 2005
Posts: 286
|
|
Quote:
Originally Posted by Secrets
Easy way to do this is mincash and maxcash in the database. The values are in copper, so if you wanted all of that npc_type to drop between 100 and 300 plat, you'd use mincash value as 100 and maxcash as 300.
There's no need for perl, it's easier to do it in SQL.
Also, John, bleh added those recently, they are cut out from KMRA. Really neat commands.
|
Yeah that would make 1-3 plat drop, I want like 100-300 copper to drop. Do you know how i could get that "quest::SetCash();" working? I think that might do it. I would just make it ondeath and it would put the cash on the npc's corpse, right?
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
|

08-12-2007, 12:06 PM
|
 |
Demi-God
|
|
Join Date: May 2007
Location: b
Posts: 1,449
|
|
Quote:
Originally Posted by moydock
Yeah that would make 1-3 plat drop, I want like 100-300 copper to drop. Do you know how i could get that "quest::SetCash();" working? I think that might do it. I would just make it ondeath and it would put the cash on the npc's corpse, right?
|
Oh, sorry, I wasn't thinking straight.
You just want copper to drop, right?
Yeah you're gonna need to use a quest I think heh. There was a way without quests, I swear there was.
Let me take a look at the quest commands.
EDIT: $corpse->SetCash(in_copper, in_silver, in_gold, in_platinum)
So it would be...
Code:
sub EVENT_DEATH
my $cash = int(rand(300)+100);
{
$corpse->SetCash($cash,0,0,0);
}
And you'd have to have a random amount of cash, so you'd use a random integer between 100 and 300 with the $cash variable.
Should work in theory.
Last edited by Secrets; 08-12-2007 at 08:18 PM..
|

08-12-2007, 02:55 PM
|
Discordant
|
|
Join Date: Jun 2005
Posts: 286
|
|
Woot, exactly what i want but no worky unfortunately.
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
|

11-05-2007, 04:31 PM
|
Sarnak
|
|
Join Date: Oct 2007
Location: Oregon
Posts: 37
|
|
well, dunno about the guide linked to, but IN THE GAME, it goes BACKWARDS of what you have typed.. it goes "Plat, Gold, Silver, Copper"..
The way I've been doing it (with a hotbutton INGAME)..have the character targeted ... #npcloot money 34664 0 0 0 (and hit enter)
(that's 34664 plat, 0 gold, 0 silver and 0 copper)
if you want this to be a permanent change, you can do #npcspawn update (and hit enter) and the next time it spawns, it will spawn with those changes (you can also do, right now, #depopzone and then #repop to get it to respawn)
Sorry if that's not what you are looking for, ... I found these commands ingame using #help
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
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 10:31 AM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |