RazorBladerz Posted April 21, 2009 Posted April 21, 2009 Was thinking of doing this but had no idea how to so can someone make a mod so that i can insert items into my item? like a present.......Thanks in advance Quote
shrek1609 Posted April 21, 2009 Posted April 21, 2009 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... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.