Avisek 8 Posted October 29, 2017 Share Posted October 29, 2017 Hello,I am trying to remove player gold, but there is not function for that, I tried that like that: Spoiler [...] else pc.change_gold((pc.get_gold() - 10000000)) pc.polymorph(101, 3600) return [...] But this method duplicates my yangs.. How can I make it? Thank you. Link to comment Share on other sites More sharing options...
Premium TAUMP 827 Posted October 29, 2017 Premium Share Posted October 29, 2017 1 Link to comment Share on other sites More sharing options...
Avisek 8 Posted October 29, 2017 Author Share Posted October 29, 2017 oh fck. Sorry :c #moverequest Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted October 29, 2017 Premium Share Posted October 29, 2017 Hi. To remove gold from a player, use the function like this: else if pc.get_gold() >= 10000000 then --check if player got required gold pc.change_gold(-10000000) --remove gold from player pc.polymorph(101, 3600) --your code else syschat("You need at least 10.000.000 gold") --message in red warning about gold requirement return 1 1 Link to comment Share on other sites More sharing options...
Avisek 8 Posted October 29, 2017 Author Share Posted October 29, 2017 29 minutes ago, tierrilopes said: Hi. To remove gold from a player, use the function like this: else if pc.get_gold() >= 10000000 then --check if player got required gold pc.change_gold(-10000000) --remove gold from player pc.polymorph(101, 3600) --your code else syschat("You need at least 10.000.000 gold") --message in red warning about gold requirement return Thank you very much! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now