Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Have you purchased a mod and lost your copy? Just file a support ticket through your "My Mods" page.


This forum is now closed and has moved to a new location! Click here to find out why.
Pages: [1] 2 3 4

AuthorTopic: Ideas / Requests  (Read 6029 times)

Cyanide

  • Global Moderator
  • Basic Member
  • *****
  • Reputation Power: 38
  • Cyanide has no influence.
  • Offline Offline
  • Posts: 55
    • MSN Messenger - xcyanide187x@live.com
    • View Profile
Ideas / Requests
« on: May 15, 2009, 01:13:03 PM »
As the moderator here at Cronwerks, I will be posting alot of my work for free. So, I need ideas. Some of the ideas, if complex enough, will not be free posts, but will be posted as user created for sale with instant download. I will give credit to whoever gives me ideas for any mods that I do create. So, just post any ideas you have below and I'll get started on them.
« Last Edit: May 18, 2009, 03:00:13 PM by Cyanide »
Logged

BlackDogg

  • Basic Member
  • *
  • Reputation Power: 2
  • BlackDogg has no influence.
  • Offline Offline
  • Posts: 16
    • View Profile
    • Email
Re: Ideas...
« Reply #1 on: May 15, 2009, 02:01:47 PM »
 :D Lol  great minds think alike ive just pmed you a few mod ideas
Logged

Cyanide

  • Global Moderator
  • Basic Member
  • *****
  • Reputation Power: 38
  • Cyanide has no influence.
  • Offline Offline
  • Posts: 55
    • MSN Messenger - xcyanide187x@live.com
    • View Profile
Re: Ideas...
« Reply #2 on: May 18, 2009, 10:49:06 AM »
Thanks for the idea BlackDogg. The kidnapping mod you requested can be found here.

http://www.cronwerks.com/forum/index.php?topic=211.msg1030;boardseen#new
Logged

DDan

  • Basic Member
  • *
  • Reputation Power: 2
  • DDan has no influence.
  • Offline Offline
  • Posts: 12
    • View Profile
    • Email
Re: Ideas...
« Reply #3 on: May 18, 2009, 11:45:57 AM »
im the mainmenu.php instaed Explore can u help me do the city name ur in?
Logged

Arson

  • Global Moderator
  • Basic Member
  • *****
  • Reputation Power: 98
  • Arson barely matters.Arson barely matters.
  • Offline Offline
  • Posts: 74
    • View Profile
Re: Ideas...
« Reply #4 on: May 18, 2009, 11:58:43 AM »
im the mainmenu.php instaed Explore can u help me do the city name ur in?

Code: [Select]
$get_city = mysql_query("select * from cities where cityid={$ir['location']}",$c);
$city = mysql_fetch_array($get_city);
print "{$city['cityname']}";
Logged
List of the Best Text Games on the Interwebs!
If you own a game, you need to list it on BestTextGames.com

DDan

  • Basic Member
  • *
  • Reputation Power: 2
  • DDan has no influence.
  • Offline Offline
  • Posts: 12
    • View Profile
    • Email
Re: Ideas...
« Reply #5 on: May 18, 2009, 02:39:12 PM »
thx
Logged

DDan

  • Basic Member
  • *
  • Reputation Power: 2
  • DDan has no influence.
  • Offline Offline
  • Posts: 12
    • View Profile
    • Email
Re: Ideas / Requests
« Reply #6 on: May 19, 2009, 04:53:08 AM »
but i dont get how  to add it can some one help me lol ???
Logged

strats

  • Active Member
  • **
  • Reputation Power: 13
  • strats has no influence.
  • Offline Offline
  • Posts: 109
    • View Profile
Re: Ideas / Requests
« Reply #7 on: May 19, 2009, 05:40:41 AM »
I have lots of crystal gyms how about making one so you can only use 130 crystals a time.
Every time you train you gain 1500 a little more than how much you would if you training normally.


And make it so that donators can use 150 crystals to train with.

And also so that will only goes down like 20% each time you train.
Logged

Cyanide

  • Global Moderator
  • Basic Member
  • *****
  • Reputation Power: 38
  • Cyanide has no influence.
  • Offline Offline
  • Posts: 55
    • MSN Messenger - xcyanide187x@live.com
    • View Profile
Re: Ideas / Requests
« Reply #8 on: May 19, 2009, 07:57:31 AM »
contact me on msn and ill modify your crystal gym to do this
Logged

DDan

  • Basic Member
  • *
  • Reputation Power: 2
  • DDan has no influence.
  • Offline Offline
  • Posts: 12
    • View Profile
    • Email
Re: Ideas / Requests
« Reply #9 on: May 19, 2009, 02:49:20 PM »
Maybe the whole gang idea like in mafiadeath and in this game codes it will realy make mccodes beeter if the gang had a better signture and mail and a better vult and attck log.... and some more that is an idea if u can do it,it will be great! :-\ ;)
Logged

Cyanide

  • Global Moderator
  • Basic Member
  • *****
  • Reputation Power: 38
  • Cyanide has no influence.
  • Offline Offline
  • Posts: 55
    • MSN Messenger - xcyanide187x@live.com
    • View Profile
Re: Ideas / Requests
« Reply #10 on: May 20, 2009, 06:20:50 PM »
hmm....I'll look into it
Logged

DDan

  • Basic Member
  • *
  • Reputation Power: 2
  • DDan has no influence.
  • Offline Offline
  • Posts: 12
    • View Profile
    • Email
Re: Ideas / Requests
« Reply #11 on: May 20, 2009, 11:42:16 PM »
Good Luck Man  ;)
Logged

DeaTH_RideR

  • Basic Member
  • *
  • Reputation Power: 9
  • DeaTH_RideR has no influence.
  • Offline Offline
  • Posts: 20
    • MSN Messenger - jaynthelma05@live.com
    • View Profile
    • WWW
Re: Ideas / Requests
« Reply #12 on: May 21, 2009, 09:55:03 PM »
here is an idea that would be very helpful for the owner .

crystal market and item market.

i think it would be great to have them to where you can only have 3 lots on each and could put more then 1 item at a time ,here is the good part .

every owner knows that there are players who play a few days and might not come back, some players like to put items/crystals on the markets for unreal prices.   How about something to send all items that have not sold back to the player that posted them.
Logged

souiassassin

  • Basic Member
  • *
  • Reputation Power: 21
  • souiassassin has no influence.
  • Offline Offline
  • Posts: 19
    • View Profile
    • Email
Re: Ideas / Requests
« Reply #13 on: May 21, 2009, 10:12:59 PM »
yeah mean a daily limit like set up for 3 days and set up for 5 days

you would have to set up your cron_day, add a field to your markets and also add a field to ur data base i think correct me if iam wrong
Logged

souiassassin

  • Basic Member
  • *
  • Reputation Power: 21
  • souiassassin has no influence.
  • Offline Offline
  • Posts: 19
    • View Profile
    • Email
Re: Ideas / Requests
« Reply #14 on: May 22, 2009, 09:01:04 AM »
Hey due to request i recoded the cmarket to set your needs what it dose it when you add crystals you choose 1 5 10 days after they days are up it returnes the crystals and deletes from market also i have added a way they can only add 3 crystal sales at a time

Replace cmarket.php
with this
Code: [Select]
<?php
include "globals.php";
print 
"<h3>Crystal Market</h3>";
switch(
$_GET['action'])
{
case 
"buy":
crystal_buy();
break;

case 
"remove":
crystal_remove();
break;

case 
"add":
crystal_add();
break;

default:
cmarket_index();
break;
}
function 
cmarket_index()
{
global 
$db,$ir,$c,$userid,$h;
print 
"<a href='cmarket.php?action=add'>&gt; Add A Listing</a><br /><br />
Viewing all listings...
<table width=75% cellspacing=1 class='table'> <tr style='background:gray'> <th>Adder</th> <th>Qty</th> <th>Price each</th> <th>Days Left</th> <th>Price total</th> <th>Links</th> </tr>"
;
$q=$db->query("SELECT cm.*, u.* FROM crystalmarket cm LEFT JOIN users u ON u.userid=cm.cmADDER ORDER BY cmPRICE/cmQTY ASC");
while(
$r=$db->fetch_row($q))
{
if(
$r['cmADDER'] == $userid) { $link "<a href='cmarket.php?action=remove&ID={$r['cmID']}'>Remove</a>"; } else { $link "<a href='cmarket.php?action=buy&ID={$r['cmID']}'>Buy</a>"; }
$each= (int) $r['cmPRICE'] / $r['cmQTY'];
print 
"\n<tr> <td><a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> [{$r['userid']}]</td> <td>{$r['cmQTY']}</td> <td> \$" number_format($each)."</td> <td>{$r['cmDAYS']} Days.</td> <td>\$".number_format($r['cmPRICE'])."</td> <td>[$link]</td> </tr>";
}
print 
"</table>";
}
function 
crystal_remove()
{
global 
$db,$ir,$c,$userid,$h;

$q=$db->query("SELECT * FROM crystalmarket WHERE cmID={$_GET['ID']} AND cmADDER=$userid");
if(!
$db->num_rows($q))
{
print 
"Error, either these crystals do not exist, or you are not the owner.<br />
<a href='cmarket.php'>&gt; Back</a>"
;
$h->endpage();
exit;
}
$r=$db->fetch_row($q);
$db->query("UPDATE users SET crystals=crystals+{$r['cmQTY']} where userid=$userid");
$db->query("DELETE FROM crystalmarket WHERE cmID={$_GET['ID']}");
print 
"Crystals removed from market!<br />
<a href='cmarket.php'>&gt; Back</a>"
;
}
}
function 
crystal_buy()
{
global 
$db,$ir,$c,$userid,$h;
$q=$db->query("SELECT * FROM crystalmarket cm WHERE cmID={$_GET['ID']}");
if(!
$db->num_rows($q))
{
print 
"Error, either these crystals do not exist, or they have already been bought.<br />
<a href='cmarket.php'>&gt; Back</a>"
;
$h->endpage();
exit;
}
$r=$db->fetch_row($q);
if(
$r['cmPRICE'] > $ir['money'])
{
print 
"Error, you do not have the funds to buy these crystals.<br />
<a href='cmarket.php'>&gt; Back</a>"
;
$h->endpage();
exit;
}
$db->query("UPDATE users SET crystals=crystals+{$r['cmQTY']} where userid=$userid");
$db->query("DELETE FROM crystalmarket WHERE cmID={$_GET['ID']}");
$db->query("UPDATE users SET money=money-{$r['cmPRICE']} where userid=$userid");
$db->query("UPDATE users SET money=money+{$r['cmPRICE']} where userid={$r['cmADDER']}");
event_add($r['cmADDER'],"<a href='viewuser.php?u=$userid'>{$ir['username']}</a> bought your {$r['cmQTY']} crystals from the market for \$".number_format($r['cmPRICE']).".",$c);
print 
"You bought the {$r['cmQTY']} crystals from the market for \$".number_format($r['cmPRICE']).".";

}
function 
crystal_add()
{
global 
$db,$ir,$c,$userid,$h;
$_POST['amnt'] = abs((int) $_POST['amnt']);
$_POST['price'] = abs((int) $_POST['price']);
if(
$_POST['amnt'])
{
if(
$_POST['amnt'] > $ir['crystals'])
{
die (
"You are trying to add more crystals to the market than you have.");
}
$b=$db->query("SELECT * FROM crystalmarket WHERE cmADDER=$userid");
if (
$db->num_rows($b) > 2)
{
die(
"<center>You Are Only Allowed 3 Crystal Sales At A Time<br><a href='cmarket.php?action=add'> Back</a>");
}
$tp=$_POST['amnt']*$_POST['price'];
$db->query("INSERT INTO crystalmarket VALUES('',{$_POST['amnt']},$userid,$tp,{$_POST['days']})");
$db->query("UPDATE users SET crystals=crystals-{$_POST['amnt']} WHERE userid=$userid");
print 
"Crystals added to market!<br />
<a href='cmarket.php'>&gt; Back</a>"
;
}
else
{
print 
"<b>Adding a listing...</b><br /><br />
You have <b>{$ir['crystals']}</b> crystal(s) that you can add to the market.<form action='cmarket.php?action=add' method='post'><table width=50% border=2><tr>
<td>Crystals:</td> <td><input type='text' name='amnt' value='{$ir['crystals']}' /></td></tr><tr>
<td>Price Each:</td> <td><input type='text' name='price' value='200' /></td></tr><tr>
<td>Days:</td> <td><select type='dropdown' name='days' value='{$ir['cmDAYS']}' />><br />
<option value='1'>1
<option value='5'>5
<option value='10'>10</select>
</tr>
<td colspan=2 align=center><input type='submit' value='Add To Market' /></tr></table></form>"
;
}
}
$h->endpage();
?>


add the to your
cron_hour.php
Code: [Select]
$db->query("UPDATE crystalmarket SET cmDAYS = cmDAYS - 1 WHERE cmDAYS > 0");
if($r['cmDAYS'] == 0)
{
$q=$db->query("SELECT cm.*, u.* FROM crystalmarket cm LEFT JOIN users u ON u.userid=cm.cmADDER ORDER BY cmPRICE/cmQTY ASC");
while($r=$db->fetch_row($q))
{
$q=$db->query("SELECT * FROM crystalmarket WHERE cmID={$r['cmID']} AND cmADDER={$r['userid']}");

$r=$db->fetch_row($q);
$db->query("UPDATE users SET crystals=crystals+{$r['cmQTY']} WHERE userid={$r['cmADDER']}");
$db->query("DELETE FROM crystalmarket WHERE cmID={$r['cmID']}");
}
}

add this to your DB
SQL
Code: [Select]
ALTER TABLE `crystalmarket` ADD `cmDAYS` INT( 11 ) NOT NULL DEFAULT '1';

Add Your Done.
any bugs message me but has been tested

adding the itemmarket 1 soon

« Last Edit: May 22, 2009, 09:28:39 AM by souiassassin »
Logged
Pages: [1] 2 3 4
« previous next »
 


This forum is now closed and has moved to a new location! Click here to find out why.