Jump to content
MakeWebGames

Recommended Posts

Posted

Re: Items in Items

don't have time to make this but you could something along these lines...

 

open inventory and find

 

if($i['effect1_on'] || $i['effect2_on'] || $i['effect3_on']) {
print " 
[[url='itemuse.php?ID={$i[']Use[/url]]
";
}

 

you can either add a new field to items ie $i['effect4_on'])

or just use one of the 3 effect options just for your presents... this would be easier as less to change...

so change above code to

 

if($i['effect1_on'] || $i['effect2_on']){
print " 
[[url='itemuse.php?ID={$i[']Use[/url]]
";
}

else if ($i['effect3_on'])
print " 
[[url='itemuse.php?ID={$i[']Unwrap Present[/url]]
";
}

 

so now create your item present and set effect 3 to on but leave rest of the effect 3 options alone (basically so it does nothing)

then open up item use...

find

 

if($r['effect3_on'])
{

 

add under that...

replace the item number 104 with the item id number of your present you created

 

if($r['itmid']==104)
{

$db->query("INSERT INTO inventory VALUES('',999,$userid,1)"); 
}

 

999 being the item id number of the item you wish them to find inside the present...

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...