Jump to content
MakeWebGames

[mccode v2] Pass Parcel or Secret Santa [Working Copy]


Uridium
 Share

Recommended Posts

This Mods Sends a Prcael when created by admin to a random user once a present has a lyer removed its moved onto the next member until the defined layers have been removed and the prize gained....

SQLS

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Call this file staff_parcel.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

add these links to smenu.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

PART 2 BELOW

Link to comment
Share on other sites

Re: [Mccodes v2] Pass Parcel or Secret Santa [Working Copy]

open up inventory.php or items.php

Add....

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Now call this File wrapper.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Open up global_func.php add this under the <?php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: [Mccodes v2] Pass Parcel or Secret Santa [Working Copy]

 

Is that the full script in wrapper.php?

Not as yet still working on the part to update user inventory with parcel gift.. also the Cron needs re-touching..

Just after i posted I found an error so erased the unworking parts from the wrapper.php

Link to comment
Share on other sites

Re: [Mccodes v2] Pass Parcel or Secret Santa [Working Copy]

IGNORE THE staff_parcel.php Above and use this one....

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

ALSO add this to global_func.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: [Mccodes v2] Pass Parcel or Secret Santa [Working Copy]

Sorry about that guys it was finished up until the point i found a bug which is causing issues I have removed the ability to get a reward from the above script until i can find a cure for it..

But adding the script as it is now will not harm anything and will be easier for you when ive completed the wrapper.php file..

Link to comment
Share on other sites

Re: [Mccodes v2] Pass Parcel or Secret Santa [Working Copy]

Dont worry I havent forgot about this Post im still on the case ;) Big thanks to Radio_Active though for his generous help on the project :)

Im hoping to have the working copy and i mean WORKING copy posted later today..

Probably wont have as many functions as i did declare thats coz MCC's crap.. lol and im a crap coder :)

Reason for edit FAT FINGERS...

Link to comment
Share on other sites

Re: [Mccodes v2] Pass Parcel or Secret Santa [Working Copy]

 

Dont worry I havent forgot about this Post im still on the case ;) Big thanks to Radio_Active though for his generous help on the project :)

Im hoping to have the working copy and i mean WORKING copy posted later today..

Probably wont have as many functions as i did declare thats coz MCC's crap.. lol and im a crap coder :)

Reason for edit FAT FINGERS...

1) Great work, and good job Radio_Active for helping

2) Your not a 'crap coder' because you can do 100x what I can do. Don't be modest :P

Link to comment
Share on other sites

Re: [Mccodes v2] Pass Parcel or Secret Santa [Working Copy]

Sorry for the delay had to test it first...... the sqls are the same with one extra.

open inventory.php or items.php

ADD

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Thanks to Radio-Active for this script :)

Call this file wrapper.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

RESTRUCTURED staff panel for parcels call this file staff_parcel.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

add the following to your users tabel

ALTER TABLE users ADD parcel INT (11) DEFAULT '0'

No Need For a Cronjob..

Link to comment
Share on other sites

Re: [Mccodes v2] Pass Parcel or Secret Santa [Working Copy]

uh, THIS should be the staff_parcel.php

Reason: Some of the queries were mixed up with the parcel types query, ect...

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

also can anyone fix my Wrapper.php for me cuz it keeps saying i dont have a parcel in my possession as soon as i click on unwrap layer after i click remove layer in inventory.

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...