Guest User

Untitled

a guest
Sep 23rd, 2016
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. /**
  2. * ExileClient_system_trading_network_wasteDumpResponse
  3. *
  4. * Exile Mod
  5. * www.exilemod.com
  6. * © 2015 Exile Mod Team
  7. *
  8. * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
  9. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
  10. */
  11.  
  12. private["_responseCode","_revenue","_newPlayerRespectString","_newPlayerRespect","_respect"];
  13. _responseCode = _this select 0;
  14. _revenue = _this select 1;
  15. _newPlayerRespectString = _this select 2;
  16. ExileClientIsWaitingForServerTradeResponse = false;
  17.  
  18. if (_responseCode isEqualTo 0) then
  19. {
  20. _newPlayerRespect = parseNumber _newPlayerRespectString;
  21. _respect = _newPlayerRespect - ExileClientPlayerScore;
  22. ExileClientPlayerScore = _newPlayerRespect;
  23. if (_respect isEqualTo 0) then
  24. {
  25. ["SuccessTitleAndText", ["Dumped all the things!", format ["+%1<img image='\exile_assets\texture\ui\poptab_inline_ca.paa' size='24'/><br/>+%2 respect", _revenue, _respect]]] call ExileClient_gui_toaster_addTemplateToast;
  26. }
  27. else
  28. {
  29. ["SuccessTitleAndText", ["Dumped all the things!", format ["+%1<img image='\exile_assets\texture\ui\poptab_inline_ca.paa' size='24'/><br/>+%2 respect", _revenue, _respect]]] call ExileClient_gui_toaster_addTemplateToast;
  30. };
  31. }
  32. else
  33. {
  34. systemChat format["Failed to throw things away: %1", _responseCode];
  35. };
Add Comment
Please, Sign In to add comment