Jump to content
MakeWebGames

Recommended Posts

Posted

Ok I've finally got it finished. You may have seen from another topic I made that I posted info about it. It is a tag mod, you are playing the game and you randomly get a tag. You can trade tags for different things and also sell them on a market.I hope you enjoy it. I couldn't do the tag market from scratch, sorry. So I took the crystal market and changed the values and stuff. Its not secure, I tell you that now. I'm currently reading up on security and will learn how to secure queries etc. Once I have done a secure market, I'll post it.

Run this SQL:

You're unable to view this code.

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

 

I am not sure how to write the SQL for this one, but go into your database. There are features there that allow you to create rows. Its pretty simple.. In the table `settings` create 7 rows. 

        tt_strengthpertag 

tt_agilitypertag

tt_moneypertag

tt_cryspertag

tt_guardpertag

tt_labourpertag

tt_IQpertag.

Now open up staff.php. Find:

You're unable to view this code.

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

 

Underneath it add:

You're unable to view this code.

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

 

That allows you to set the price and values gained at the tag trader.

 

The tag market SQL:

You're unable to view this code.

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

Posted

Re: [mccode v2] Tag Mod (Complete)

Now make a file called tagtrader.php and add this code to it.

You're unable to view this code.

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

 

Now make one called tagmarket.php and add this

You're unable to view this code.

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

 

Now open up header.php and underneath the voting links, add:

You're unable to view this code.

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

 

Thats it, credits to BlueDevil23 who taught me loads whilst in the process of making this, such as how to write proper HTML etc. Its not as easy as you think :P.Thanks to Templar also for helping me out with an error also. Thank you and hope you enjoy the mod

Posted

Re: [mccode v2] Tag Mod (Complete)

 

atleast he tried +1

Thanks _SaMz_. I try, at least I think I do. Luckily I have a few awesome people to help me out when I am in difficulty. I suppose I'm learning, I'm not as good as some people, but I try. Thanks anyway for that comment.

Posted

Re: [mccode v2] Tag Mod (Complete)

Ok, well I was talking to BlueDevil23, he taught me a bit about security. So he is a secure version of the Tag Trader, simply replace the current one with this.

 

You're unable to view this code.

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

Posted

Re: [mccode v2] Tag Mod (Complete)

i don't quite understand what the mod does and i looked at the "secured" script and it is not much different.

Why do i keep seeing is_string? it is pointless!

 

You're unable to view this code.

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

 

Use ctype_aplha, ctype_aplnum or ctype_digit

Posted

Re: [mccode v2] Tag Mod (Complete)

 

Run this SQL:

Code: [select]UPDATE `users` ADD `HDTags` BIGINT(50) NOT NULL default '0';

didnt work 4 me m8 so i used

 

You're unable to view this code.

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

Posted

Re: [mccode v2] Tag Mod (Complete)

Oh yeah, I thought I'd made an error somewhere :|

Thanks for that, will make it easier for a for new people.

Posted

Re: [mccode v2] Tag Mod (Complete)

 

Why do i keep seeing is_string? it is pointless!

 

How is is_string() pointless? It checks to see if the supplied argument, is a.... string. Therefore, it has a purpose.

You are right though, ctype_alpha() could have been used, and performed the same task...

Posted

Re: [mccode v2] Tag Mod (Complete)

Hey ppl iv just added the mod but ders one lil problem and its the sqll it wont let me ad it because its the rong one can someone post the right one

Posted

Re: [mccode v2] Tag Mod (Complete)

@ryzzo123

1. Try using correct grammar and spelling, please. It does not help you if you cannot help us understand what is going on.

2.

ALTER TABLE `users` ADD `HDTags` BIGINT(50) NOT NULL DEFAULT '0';
Posted

Re: [mccode v2] Tag Mod (Complete)

@ryzzo123

1. Try using correct grammar and spelling, please. It does not help you if you cannot help us understand what is going on.

2.

ALTER TABLE `users` ADD `HDTags` BIGINT(50) NOT NULL DEFAULT '0';

I could understand him :P

Hey people I've just added the mod but there's one little problem and its the sql it won't let me add it in because its the wrong one can someone post the right one (please - should be there )

I know it was a pointless post , Though I'd make my presence known.

Nice mod seems like a cool idea

Posted

Re: [mccode v2] Tag Mod (Complete)

Yeah I know, it was a stupid mistake, it was late at night when I was making this, lol. And I was reading up on securing queries, and there were a few UPDATE `users` so I guess being the goob I am posted that. Thanks for edits and corrections also people, and many thanks to BlueDevil23 for the security in the secured version he posted.

Posted

Re: [mccode v2] Tag Mod (Complete)

Bah, forgot to do that. Well run this:

You're unable to view this code.

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

 

This should work, I'm not too good with SQL's though, I use the tools on it that do it for you lol.

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