Gold -> Bag -> Bank - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Gold -> Bag -> Bank (/Thread-Gold-Bag-Bank) |
RE: Gold -> Bag -> Bank - Khaos - 03-25-2016 04:15 PM It is a hard code issue. It is why I tried switching the Src with TrySrc. It is on a todo list to add another parameter to where it can go. Basically a bounce placement of your choice. Just thought that TrySrc might have been a cheap way to beat the system, since Sphere has a lot of ways to do things you shouldn't. RE: Gold -> Bag -> Bank - Llirik - 04-17-2016 04:36 AM ON=@Timer // display a message over the LINK object that can be seen by TOPOBJ (TOPOBJ is a reference to the top-most // object that contains this object, for example the character that has the item equipped) TRYSRC <TOPOBJ.UID> LINK.MESSAGE Hello There! // if you recall, the MESSAGE function only shows a message to SRC RETURN 1 And another: ON=@Timer // place 5000 gold coins in LINK's backpack SERV.NEWITEM i_gold NEW.AMOUNT = 5000 TRYSRC <LINK.UID> NEW.BOUNCE // the BOUNCE function places an item into SRC's backpack RETURN 1 RE: Gold -> Bag -> Bank - XuN - 04-17-2016 10:06 PM SERV.NEWITEM i_gold NEW.AMOUNT = 5000 LINK.BOUNCE=<NEW> // you can make anyone to force an item to be bounced calling the bounce on that char and passing the item as arg. RE: Gold -> Bag -> Bank - Llirik - 04-18-2016 02:59 AM [Function AddGold] Serv.NewItem=i_Bag,1,<Src.FindLayer.Layer_BankBox.UID> TrySrc <New.UID> NewGold <ArgN> How full without errors? Or don't work compactly? Gold -> Bag -> Bank - roberpot - 04-18-2016 03:51 AM You can remove the if too. RE: Gold -> Bag -> Bank - Llirik - 11-12-2016 09:04 PM (03-02-2016 01:22 AM)Llirik Wrote: [FUNCTION f_add_gold] [FUNCTION f_add_gold] serv.newitem i_bag, 1, <findlayer.29.uid> local.newbag = <new.uid> local.money = <argn> while <local.money> > 65000 serv.newitem i_gold, 65000, <local.newbag> local.money -= 65000 endwhile serv.newitem i_gold, <local.money>, <local.newbag> update Yes, yes, yes! |