[PLUGIN] BuyIt v1.1 (13/05/2112)
+49
patho
Galaxytrain420
Aellae
sarica
aronkoch
ertyanna
jaaeyja
buxx
kkkkkkk
cmv59
mimika
surfingman
starfish16
nhoc_bimbim
lenda
madmaca
bobitos
guudman
xanubi
prncessjasmine68
hartono
Elliken
miraclesuki
mariolast
Hakihaki1
Lomen
mns
theclarets1969
asproef
CangryMan
63mb3l
TheChaosAngel
w3w4
helldawg
farach
bahatu
demian.kinley
bradang
keremyan
aztecatarasco
starpuzzles
rlff38
Jazzoo
tHc
anhoc
nipunb
AQIROCK
Little Todd
53 posters
Page 1 of 10
Page 1 of 10 • 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
[PLUGIN] BuyIt v1.1 (13/05/2112)
This plugin buys items for coins.
It is based on the Charles mystery Crate method. I just made it in to a nice user friendly plugin.
WARNING: This plugin will use your coins to buy the items selected!
Almost all item in the xml file with a coin cost are listed.
If you don't see the item your looking for, it probably does not have a coin cost in the xml file.
v1.0
-Initial release
v.1.1
-Added coin functions. (Get Coins is listed in Options drop down menu) * Thanks to tHc for the code he provided.
-plugin will automatically get coins to buy items if you don't have enough.
-added several checks to prevent coins from exceeding the 2 billion max.
Thanks to everyone for providing me with the necessary information in order to make this plugin possible.
Feel free to post any suggestions or comments.
Enjoy,
Little Todd
KNOWN ITEMS THAT YOU CAN NOT BUY WITH THIS PLUGIN
It is based on the Charles mystery Crate method. I just made it in to a nice user friendly plugin.
WARNING: This plugin will use your coins to buy the items selected!
Almost all item in the xml file with a coin cost are listed.
If you don't see the item your looking for, it probably does not have a coin cost in the xml file.
v1.0
-Initial release
v.1.1
-Added coin functions. (Get Coins is listed in Options drop down menu) * Thanks to tHc for the code he provided.
-plugin will automatically get coins to buy items if you don't have enough.
-added several checks to prevent coins from exceeding the 2 billion max.
Thanks to everyone for providing me with the necessary information in order to make this plugin possible.
Feel free to post any suggestions or comments.
- Code:
http://www.mediafire.com/download.php?vxab7bey3gbt5ip
Enjoy,
Little Todd
KNOWN ITEMS THAT YOU CAN NOT BUY WITH THIS PLUGIN
- French Chateau
Last edited by Little Todd on Tue May 15, 2012 7:18 pm; edited 3 times in total
Little Todd- Posts : 409
Points : 425
Join date : 2012-02-23
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
hmm peti now buyit and the same method lol nice but this one really nice because including the list of item. nice work Todd Cool! its work with most items xD
AQIROCK- Posts : 426
Points : 448
Join date : 2011-12-11
Age : 41
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
AQIROCK wrote:One question, is all item listed can be buy including harmony heights?
harmony heights is listed under the Residence section, sub menu neighborhood, for 10,000 coins.
You can click the Residence button to see all Residence related items, or select neighborhood on the drop down menu.
Almost all items are listed. I excluded things like crops, factory contracts, plane contract, ect, and a few other non-item non-placeable things.
Hope this helps.
Little Todd- Posts : 409
Points : 425
Join date : 2012-02-23
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
yep I'm already try lol and sorry edit my comments after you answer didnt realize it, this is great because harmony heights level 3 cant buy with charles. Btw why not you adding generate coins also so its easy no need to use peti anymore to make coins xD
AQIROCK- Posts : 426
Points : 448
Join date : 2011-12-11
Age : 41
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
yeah, it would be good, if the coins function is also added......
nipunb- Posts : 362
Points : 374
Join date : 2011-10-08
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
AQIROCK wrote:yep I'm already try lol and sorry edit my comments after you answer didnt realize it, this is great because harmony heights level 3 cant buy with charles. Btw why not you adding generate coins also so its easy no need to use peti anymore to make coins xD
You can't get Harmony Heights level 3 with Charles??? Really?
This plugin does exactly what you would do with charles. If it don't work with charles, then it probably would not work with this plugin.
I have not tested every single item.. There is way too many.
Although I did go ahead to buy a Harmony Heights level 3, and I got it and placed it in my city.
Little Todd- Posts : 409
Points : 425
Join date : 2012-02-23
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
Little Todd wrote:
You can't get Harmony Heights level 3 with Charles??? Really?
This plugin does exactly what you would do with charles. If it don't work with charles, then it probably would not work with this plugin.
I have not tested every single item.. There is way too many.
Although I did go ahead to buy a Harmony Heights level 3, and I got it and placed it in my city.
Yes dear Todd I'm also try and its work thats why i wonder how you make it because with charles its not work anymore but this plugin are based on charles method hmmm. But please add make coins function also so I dont need to use my edited peti anymore lol it would be nice if they come in one plugin just afraid if both plugin conflict
AQIROCK- Posts : 426
Points : 448
Join date : 2011-12-11
Age : 41
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
AQIROCK wrote:
But please add make coins function also so I dont need to use my edited peti anymore lol it would be nice if they come in one plugin just afraid if both plugin conflict
It should not conflict with any other plugin. I wrote this plugin from scratch.
Let me take a look at how the coins part work, and how hard it would be to add.
I will let you know.
Little Todd- Posts : 409
Points : 425
Join date : 2012-02-23
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
Little Todd wrote:
It should not conflict with any other plugin. I wrote this plugin from scratch.
Let me take a look at how the coins part work, and how hard it would be to add.
I will let you know.
Yeah cool! will waiting for a good news xD
AQIROCK- Posts : 426
Points : 448
Join date : 2011-12-11
Age : 41
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
some friends using this plugin for testing and buy many items in once and they got OOS error hmm I didnt test with many items as I'm not really need it
[BuyIt] Action done.
([28]Sequence OOS) [28] Sequence OOS
[BuyIt] Trying to Buy 1 theme_park_level3
([28]Sequence OOS) [28] Sequence OOS
[BuyIt] Trying to Buy 10 skyscraper_japanese_6
([28]Sequence OOS) [28] Sequence OOS
[BuyIt] Trying to Buy 10 skyscraper_dubai_6
([]) You got 10 res_ecoskyscraper
[BuyIt] Trying to Buy 10 res_ecoskyscraper
[BuyIt] Action started...
[BuyIt] Action done.
([28]Sequence OOS) [28] Sequence OOS
[BuyIt] Trying to Buy 1 theme_park_level3
([28]Sequence OOS) [28] Sequence OOS
[BuyIt] Trying to Buy 10 skyscraper_japanese_6
([28]Sequence OOS) [28] Sequence OOS
[BuyIt] Trying to Buy 10 skyscraper_dubai_6
([]) You got 10 res_ecoskyscraper
[BuyIt] Trying to Buy 10 res_ecoskyscraper
[BuyIt] Action started...
AQIROCK- Posts : 426
Points : 448
Join date : 2011-12-11
Age : 41
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
AQIROCK wrote:some friends using this plugin for testing and buy many items in once and they got OOS error hmm I didnt test with many items as I'm not really need it
[BuyIt] Action done.
([28]Sequence OOS) [28] Sequence OOS
[BuyIt] Trying to Buy 1 theme_park_level3
([28]Sequence OOS) [28] Sequence OOS
[BuyIt] Trying to Buy 10 skyscraper_japanese_6
([28]Sequence OOS) [28] Sequence OOS
[BuyIt] Trying to Buy 10 skyscraper_dubai_6
([]) You got 10 res_ecoskyscraper
[BuyIt] Trying to Buy 10 res_ecoskyscraper
[BuyIt] Action started...
Like it was said!
"WARNING: This plugin will use your coins to buy the items selected!"
exemple ::::::
10 skyscraper_japanese_6 ==> 10 * 15 000 000
10 res_ecoskyscraper ==> 10 * 10 000 000
.....
that's a lot of money for these item.....
it's only work, if you have the amout for all each item
if you have 10 * 15 000 000 golds, you can buy 10 skyscraper_japanese_6,
after that, if you still have 10 * 10 000 000 golds, you can buy 10 res_ecoskyscraper
...
So, you need a LOT of coins
anhoc- Posts : 20
Points : 22
Join date : 2011-10-14
Age : 39
Location : France
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
this is not me who buy but one of my group member and yes maybe this person coins are not enough xD
AQIROCK- Posts : 426
Points : 448
Join date : 2011-12-11
Age : 41
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
You are right!AQIROCK wrote:this is not me who buy but one of my group member and yes maybe this person coins are not enough xD
For a good use of this plug, coins amount it's important!
anhoc- Posts : 20
Points : 22
Join date : 2011-10-14
Age : 39
Location : France
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
yep thats why I request to add make coins function also for this plugin so it can make coins also after using it xD so I dont need anymore to use my mysterybox to make coins lol
AQIROCK- Posts : 426
Points : 448
Join date : 2011-12-11
Age : 41
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
AQIROCK wrote:yep thats why I request to add make coins function also for this plugin so it can make coins also after using it xD so I dont need anymore to use my mysterybox to make coins lol
An improvement could be:
-coins function
-buy function with an auto-make coins when needed
anhoc- Posts : 20
Points : 22
Join date : 2011-10-14
Age : 39
Location : France
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
Yeah that would be great
AQIROCK- Posts : 426
Points : 448
Join date : 2011-12-11
Age : 41
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
Coins would be easy as to implement, you dont need to enter a neighbours id, it can just be hardcoded, i have been using a coins plug for ages and works fine, that way just needs checkbox, heres the amf i use, similar to Peti's just complete and using a hardcoded id
They are identical bar the function name and resource type, but works well and doesnt need any params by user, but adding to get coins as needed is a bit pointless, just get yourself a heap when needed, i have had coins sitting close to 2 billion for close on a year, if you dont feel comfortable with that just goto 1 billion
Also maybe a addition so it doesnt list the placable=false items as these just become stuck in inventory until sold (I only looked in businesses but saw the mcsonalds businesses, so there is probably more)
- Code:
function PlaceOrder($bot, $obj)
{
unset($bot->error_msg);
list($usec, $sec) = explode(" ", microtime());
$stamp = (string) $sec . substr((string) $usec, 2, 3);
$amf = new AMFObject("");
$amf->_bodys[0] = new MessageBody();
$amf->_bodys[0]->_value[0] = $bot->GetAmfHeader();
$amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
$amf->_bodys[0]->responseURI = '';
$amf->_bodys[0]->_value[2] = 0;
$amf->_bodys[0]->_value[1][0]['transaction']['canPerfom'] = true;
$amf->_bodys[0]->_value[1][0]['stamp'] = $stamp;
$amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense();
$amf->_bodys[0]->_value[1][0]['functionName'] = "LotOrderService.placeOrder";
$amf->_bodys[0]->_value[1][0]['params'][0]['constructionCount'] = 0;
$amf->_bodys[0]->_value[1][0]['params'][0]['offsetY'] = null;
$amf->_bodys[0]->_value[1][0]['params'][0]['senderID'] = $CurrentUserId;
$amf->_bodys[0]->_value[1][0]['params'][0]['lotId'] = -1;
$amf->_bodys[0]->_value[1][0]['params'][0]['recipientID'] = 20125249639;
$amf->_bodys[0]->_value[1][0]['params'][0]['orderResourceName'] = 'Test';
$amf->_bodys[0]->_value[1][0]['params'][0]['resourceType'] = bus_bakery;
$amf->_bodys[0]->_value[1][0]['params'][0]['offsetX'] = null;
$serializer = new AMFSerializer();
$result = $serializer->serialize($amf);
$x = $bot->SendRequest($result);
}
}
function CancelOrder($bot, $obj)
{
unset($bot->error_msg);
list($usec, $sec) = explode(" ", microtime());
$stamp = (string) $sec . substr((string) $usec, 2, 3);
$amf = new AMFObject("");
$amf->_bodys[0] = new MessageBody();
$amf->_bodys[0]->_value[0] = $bot->GetAmfHeader();
$amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
$amf->_bodys[0]->responseURI = '';
$amf->_bodys[0]->_value[2] = 0;
$amf->_bodys[0]->_value[1][0]['transaction']['canPerfom'] = true;
$amf->_bodys[0]->_value[1][0]['stamp'] = $stamp;
$amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense();
$amf->_bodys[0]->_value[1][0]['functionName'] = "LotOrderService.cancelOrder";
$amf->_bodys[0]->_value[1][0]['params'][0]['constructionCount'] = 0;
$amf->_bodys[0]->_value[1][0]['params'][0]['offsetY'] = null;
$amf->_bodys[0]->_value[1][0]['params'][0]['senderID'] = $CurrentUserId;
$amf->_bodys[0]->_value[1][0]['params'][0]['lotId'] = -1;
$amf->_bodys[0]->_value[1][0]['params'][0]['recipientID'] = 20125249639;
$amf->_bodys[0]->_value[1][0]['params'][0]['orderResourceName'] = 'Test';
$amf->_bodys[0]->_value[1][0]['params'][0]['resourceType'] = res_cultural_house_4;
$amf->_bodys[0]->_value[1][0]['params'][0]['offsetX'] = null;
$serializer = new AMFSerializer();
$result = $serializer->serialize($amf);
$x = $bot->SendRequest($result);
}
}
They are identical bar the function name and resource type, but works well and doesnt need any params by user, but adding to get coins as needed is a bit pointless, just get yourself a heap when needed, i have had coins sitting close to 2 billion for close on a year, if you dont feel comfortable with that just goto 1 billion
Also maybe a addition so it doesnt list the placable=false items as these just become stuck in inventory until sold (I only looked in businesses but saw the mcsonalds businesses, so there is probably more)
tHc- Posts : 161
Points : 165
Join date : 2012-04-14
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
AQIROCK wrote:some friends using this plugin for testing and buy many items in once and they got OOS error hmm I didnt test with many items as I'm not really need it
[BuyIt] Action done.
([28]Sequence OOS) [28] Sequence OOS
[BuyIt] Trying to Buy 1 theme_park_level3
([28]Sequence OOS) [28] Sequence OOS
[BuyIt] Trying to Buy 10 skyscraper_japanese_6
([28]Sequence OOS) [28] Sequence OOS
[BuyIt] Trying to Buy 10 skyscraper_dubai_6
([]) You got 10 res_ecoskyscraper
[BuyIt] Trying to Buy 10 res_ecoskyscraper
[BuyIt] Action started...
I successfully got those 3 items. I'm guessing they did not have the coins to buy that quantity of items.
Little Todd- Posts : 409
Points : 425
Join date : 2012-02-23
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
anhoc wrote:
An improvement could be:
-coins function
-buy function with an auto-make coins when needed
Thanks for the ideas.
Coins function can easily be added. (Thanks to all who provided the parts of the code needed.)
I am looking into adding the following options:
An option to just 'Get coins'. Enter number of cycles and bot gets coins.
An option to 'Get coins if needed to cover the cost of the items selected'
An option to 'Get coins to cover cost of items selected, regardless of starting coin amount'
I am going to add a check to make sure you have the coins before it tries to buy each item, so adding the above options should be easy to do.
Let me know any ideas you all have.
Thanks,
Little Todd.
Little Todd- Posts : 409
Points : 425
Join date : 2012-02-23
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
tHc wrote:Coins would be easy as to implement, you dont need to enter a neighbours id, it can just be hardcoded, i have been using a coins plug for ages and works fine, that way just needs checkbox, heres the amf i use, similar to Peti's just complete and using a hardcoded id
- Code:
function PlaceOrder($bot, $obj)
{
unset($bot->error_msg);
list($usec, $sec) = explode(" ", microtime());
$stamp = (string) $sec . substr((string) $usec, 2, 3);
$amf = new AMFObject("");
$amf->_bodys[0] = new MessageBody();
$amf->_bodys[0]->_value[0] = $bot->GetAmfHeader();
$amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
$amf->_bodys[0]->responseURI = '';
$amf->_bodys[0]->_value[2] = 0;
$amf->_bodys[0]->_value[1][0]['transaction']['canPerfom'] = true;
$amf->_bodys[0]->_value[1][0]['stamp'] = $stamp;
$amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense();
$amf->_bodys[0]->_value[1][0]['functionName'] = "LotOrderService.placeOrder";
$amf->_bodys[0]->_value[1][0]['params'][0]['constructionCount'] = 0;
$amf->_bodys[0]->_value[1][0]['params'][0]['offsetY'] = null;
$amf->_bodys[0]->_value[1][0]['params'][0]['senderID'] = $CurrentUserId;
$amf->_bodys[0]->_value[1][0]['params'][0]['lotId'] = -1;
$amf->_bodys[0]->_value[1][0]['params'][0]['recipientID'] = 20125249639;
$amf->_bodys[0]->_value[1][0]['params'][0]['orderResourceName'] = 'Test';
$amf->_bodys[0]->_value[1][0]['params'][0]['resourceType'] = bus_bakery;
$amf->_bodys[0]->_value[1][0]['params'][0]['offsetX'] = null;
$serializer = new AMFSerializer();
$result = $serializer->serialize($amf);
$x = $bot->SendRequest($result);
}
}
function CancelOrder($bot, $obj)
{
unset($bot->error_msg);
list($usec, $sec) = explode(" ", microtime());
$stamp = (string) $sec . substr((string) $usec, 2, 3);
$amf = new AMFObject("");
$amf->_bodys[0] = new MessageBody();
$amf->_bodys[0]->_value[0] = $bot->GetAmfHeader();
$amf->_bodys[0]->targetURI = 'BaseService.dispatchBatch';
$amf->_bodys[0]->responseURI = '';
$amf->_bodys[0]->_value[2] = 0;
$amf->_bodys[0]->_value[1][0]['transaction']['canPerfom'] = true;
$amf->_bodys[0]->_value[1][0]['stamp'] = $stamp;
$amf->_bodys[0]->_value[1][0]['sequence'] = $bot->GetSequense();
$amf->_bodys[0]->_value[1][0]['functionName'] = "LotOrderService.cancelOrder";
$amf->_bodys[0]->_value[1][0]['params'][0]['constructionCount'] = 0;
$amf->_bodys[0]->_value[1][0]['params'][0]['offsetY'] = null;
$amf->_bodys[0]->_value[1][0]['params'][0]['senderID'] = $CurrentUserId;
$amf->_bodys[0]->_value[1][0]['params'][0]['lotId'] = -1;
$amf->_bodys[0]->_value[1][0]['params'][0]['recipientID'] = 20125249639;
$amf->_bodys[0]->_value[1][0]['params'][0]['orderResourceName'] = 'Test';
$amf->_bodys[0]->_value[1][0]['params'][0]['resourceType'] = res_cultural_house_4;
$amf->_bodys[0]->_value[1][0]['params'][0]['offsetX'] = null;
$serializer = new AMFSerializer();
$result = $serializer->serialize($amf);
$x = $bot->SendRequest($result);
}
}
They are identical bar the function name and resource type, but works well and doesnt need any params by user, but adding to get coins as needed is a bit pointless, just get yourself a heap when needed, i have had coins sitting close to 2 billion for close on a year, if you dont feel comfortable with that just goto 1 billion
Also maybe a addition so it doesnt list the placable=false items as these just become stuck in inventory until sold (I only looked in businesses but saw the mcsonalds businesses, so there is probably more)
Thanks tHc,
Your information and parts of code are very useful in making the plugin better for everyone.
I thought of filtering the items using the 'placeable' option, but ran into problems with items that 'derivesFrom' other items. Sometimes only the item it derives from has the needed info.
I will look into it further.
Thanks everyone for your comments and suggestions,
Little Todd
Little Todd- Posts : 409
Points : 425
Join date : 2012-02-23
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
Hej Little Todd,
thank you for this Plugin. Works cool and very easy to handle.
Jazzoo
thank you for this Plugin. Works cool and very easy to handle.
Jazzoo
Jazzoo- Posts : 44
Points : 44
Join date : 2012-02-14
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
Works fine, thx !
rlff38- Posts : 120
Points : 126
Join date : 2011-12-27
Location : France
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
Thank you. Working fine.
starpuzzles- Posts : 13
Points : 13
Join date : 2011-09-22
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
Updated.
See first post.
See first post.
Little Todd- Posts : 409
Points : 425
Join date : 2012-02-23
Re: [PLUGIN] BuyIt v1.1 (13/05/2112)
Little Todd wrote:Updated.
See first post.
yayyy~!!!! ty hun for coins added!!! weeeee
AQIROCK- Posts : 426
Points : 448
Join date : 2011-12-11
Age : 41
Page 1 of 10 • 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Similar topics
» [PLUGIN] Buildings2 v2.5.1 (29/07/2112)
» [PLUGIN] ImageDL v1.3 (24/06/2112)
» [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)
» [PLUGIN] sendTo v1.0 - Downtown Update (18/04/2112)
» BuyIt plugin
» [PLUGIN] ImageDL v1.3 (24/06/2112)
» [PLUGIN] Buildings-DownTown v1.3 (08/05/2112)
» [PLUGIN] sendTo v1.0 - Downtown Update (18/04/2112)
» BuyIt plugin
Page 1 of 10
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Mon Apr 20, 2015 1:52 pm by ertyanna
» expansions cityville hack new 12/12/15
Sat Feb 14, 2015 9:52 pm by nico
» Biohazard Problem Expansion
Sat Nov 08, 2014 3:12 pm by CV FO LIFE
» CAN SOMEONE HELP ME?
Sat Nov 08, 2014 3:09 pm by CV FO LIFE
» hello friends i have new update of cv bot project devil 1.10 update (2.01)
Sat Nov 01, 2014 12:59 pm by Blue Angel
» [Resolved] codebase-php Error
Sun Oct 12, 2014 7:22 am by nico
» -_- Which bot is now working ????
Thu Oct 09, 2014 7:06 pm by lobobpf6
» bot 1.2 does nt work
Sun Aug 10, 2014 1:00 am by nathaliafariass
» COMO FUNCIONA
Sun Aug 10, 2014 12:38 am by nathaliafariass