Macintrash Posted November 10, 2008 Posted November 10, 2008 I Wrote a small code block into itemuse.php, its basically an item that when used, gives the user medical items, a donator day, some cash and crystals etc. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Its really a very useful item, all you need to do is create the item and name it Starter Pack and it should work. You can also add an "event_add" to itemsend.php so that it tells you who send the item Sorry i dont know how to use colored codes :( Quote
MDK666 Posted November 10, 2008 Posted November 10, 2008 Re: [mccode v1]Starter Pack Item I Wrote a small code block into itemuse.php, its basically an item that when used, gives the user medical items, a donator day, some cash and crystals etc. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Its really a very useful item, all you need to do is create the item and name it Starter Pack and it should work. You can also add an "event_add" to itemsend.php so that it tells you who send the item Sorry i dont know how to use colored codes :( Sorry, this item cannot be used as it has no effect. thats what i get when i try to use it Quote
HITMAN 17 Posted November 10, 2008 Posted November 10, 2008 Re: [mccode v1]Starter Pack Item I dont think this is the full code Quote
Macintrash Posted November 10, 2008 Author Posted November 10, 2008 Re: [mccode v1]Starter Pack Item sorry i forgot to mention, it IS the full code, but you need to add your own items to the list Quote
HITMAN 17 Posted November 10, 2008 Posted November 10, 2008 Re: [mccode v1]Starter Pack Item ok you need to add an event notification and the error also it does not delete this item so basically people can reuse it Quote
HITMAN 17 Posted November 10, 2008 Posted November 10, 2008 Re: [mccode v1]Starter Pack Item right i need a little help maybe someone like nyna can help how can i make it update and give the user a +1 event Quote
HITMAN 17 Posted November 11, 2008 Posted November 11, 2008 Re: [mccode v1]Starter Pack Item ok i need a little help as on some of my mods i dont get +1 events whats the code for this Quote
AlabamaHit Posted November 11, 2008 Posted November 11, 2008 Re: [mccode v1]Starter Pack Item what? +1? what the does that have to do with a starter pack Quote
HITMAN 17 Posted November 11, 2008 Posted November 11, 2008 Re: [mccode v1]Starter Pack Item i need it to bring a (1)Events as its not doing it on that mod Quote
Michael Posted November 11, 2008 Posted November 11, 2008 Re: [mccode v1]Starter Pack Item Go to admin.php and find the bit thats for giving user Dp and copy and paste the bit where it says, you have been given a ?? donator pack by the administration. and stick it in itemuse.php. I have my own version of this on my game and i also added this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Just add this in on register.php under the registering data in DB. It's good. If you use this +1 me :D:D:D:D:D:D:D:D:D:D:D Jokeing i dont give a poop. Ahaha i make myself laugh so bad it hurts. Quote
Savager Posted November 12, 2008 Posted November 12, 2008 Re: [mccode v1]Starter Pack Item For mc codes version 2 itemuse.php below $r=$db->fetch_row($i); You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Then just add a item call Starter Pack and make sure you add a effect it doesnt matter what it is... just so in inventory.php it has the link [use] by it. Quote
shaved92bravada Posted November 12, 2008 Posted November 12, 2008 Re: [mccode v1]Starter Pack Item Why not just do it like this?? The above ways are good to, I just like to clean it up a bit and make it easily customizable. open itemuse.php find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. add this below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
AlabamaHit Posted November 12, 2008 Posted November 12, 2008 Re: [mccode v1]Starter Pack Item i need it to bring a (1)Events as its not doing it on that mod read up a post or to, they have an example of what you need.. there is a function in mccodes eventadd you can use that hope that helps :mrgreen: Quote
Zero-Affect Posted November 30, 2008 Posted November 30, 2008 Re: [mccode v1]Starter Pack Item i've seen so many of these ej.am and co.cc websites using this and forgetting on minor thing to make the button disappear after the kit or days are over. so say for example you set it for people under 5 days and the other row in the db updates also You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. how hard was that... 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.