Jump to content
MakeWebGames

Recommended Posts

Posted

Trying to add (Will's) to my Lucky Boxes when picked! I want it to be sent dir to inventory, can some one show me how please?

 

case 4:

$will=rand(1,5);

print "Outcome (gained {$will} will)";

$db->query("UPDATE users SET will=will+{$will} where userid=$userid");

break;

Posted

Re: about Lucky Boxes?

 

Trying to add (Will's) to my Lucky Boxes when picked! I want it to be sent dir to inventory, can some one show me how please?

 

case 4:

$will=rand(1,5);

print "Outcome (gained {$will} will)";

$db->query("UPDATE users SET will=will+{$will} where userid=$userid");

break;

 

Well, whatever your Will item ID is, you would change the query to...

 

case 4:
$will=rand(1,5);
print"Outcome(gained ".$will." Will Potions";
$db->query("INSERT INTO inventory VALUES('',willitemnr,$userid,$will)");
break;

Just change the 'willitemnr' to your Will Item ID and you should be all set.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...