SphereCommunity
Clear the gold from players - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Requests (/Forum-Script-Requests)
+--- Thread: Clear the gold from players (/Thread-Clear-the-gold-from-players)



Clear the gold from players - arthurxk - 09-27-2012 10:07 PM

Hello again buddies,

I need a script to delete all the gold players. Does not anyone have one of these around? most urgent


RE: Clear the gold from players - Extreme - 09-28-2012 01:30 AM

.SERV.ALLCLIENTS GOLD 0


RE: Clear the gold from players - arthurxk - 09-28-2012 01:50 AM

Thanks Dude!


RE: Clear the gold from players - Barnabus - 10-02-2012 08:39 AM

Heres a handy one for you. Just type .itemremover in game and whatever you target every instance of it will be deleted.
Target a gold coin and all the gold will leave the server, that goes for anything else you target so becarefull with it.

Code:
[FUNCTION f_ItemRemoverRemover]

    FORINSTANCES <ARGV[0]>
        REMOVE
        LOCAL.ActualCount=<INSTANCES>
    ENDFOR
    SYSMESSAGE @55,,1 Removed <EVAL <LOCAL.ActualCount>> <ARGV[0]> From the Server

[FUNCTION f_ItemRemoverSelector]

    IF (<ARGO.ISITEM>)
        ARGS=<ARGO.BASEID>
        CALL f_ItemRemoverRemover <ARGS>
    ENDIF

[FUNCTION ItemRemover]

    SYSMESSAGE @63,,1 Which Type of Item Would you Like to Delete From This World?
    SRC.TARGETF f_ItemRemoverSelector