PDA

View Full Version : Function Broken? Or just me?


JimB_1958
08-28-2013, 07:14 PM
Been testing this...



if ($text=~/testaddldon/i) {

my $mir_wins = $client->GetLDoNWinsTheme(2);
$mir_wins += 1;
quest::addldonwin($mir_wins,2);

quest::say("Okay now you have $mir_wins wins.");

}


I get no errors
the NPC answers me with the correct number of wins.
But it doesn't add a win.
What I do wrong?

NatedogEZ
08-28-2013, 07:51 PM
addldonwin seems to add ldon points and not wins... /shrug

Kingly_Krab
08-28-2013, 08:13 PM
Personal preference, but would you mind putting your script within [code] tags?

JimB_1958
08-29-2013, 09:50 AM
Confirmed.... it adds to the total LDON points.

Does not add wins or even points to the chosen theme.

I'm just looking for a way to do LDON missions outside of the normal click on the adventure recruiter. I want to do it via a quest, award points (easy part) and a win if player suceeds, a loss if they fail, and allow them to try again.

Any ideas?