Junior Spellweaver
- Joined
- Jul 6, 2015
- Messages
- 184
- Reaction score
- 41
the reward of B.R is 100 GD, but I wanted to exchange the GD for an item. how do I do that?
You must be registered to see links
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
the reward of B.R is 100 GD, but I wanted to exchange the GD for an item. how do I do that?
You must be registered to see links
plr->profile_.ProfileData.GameDollars+=5000;
essa source nao é importante, nem vazada nem mesmo trabalho de Alexredd. estou apenas editando um codigo de BR.That smell an other leak from Alexredd BR src (last version) and with =100 we can't help you, this number is linked to a function.
look or make any code for the last player alive ingame and then add something like this (this will send directly the GDs to the database)
in the case the reward were 5k of GDCode:plr->profile_.ProfileData.GameDollars+=5000;
this is in 'ServerGameLogic' remember to call the obj_ServerPlayer file in the function for "plr"
plr->profile_.ProfileData.[COLOR=#ff0000]GameDollars+=5000[/COLOR];
wiInventoryItem [COLOR=#ff0000]Potatoes[/COLOR]; [COLOR=#008000]// Potatoes claration (can use any word)[/COLOR]
[COLOR=#ff0000]Potatoes[/COLOR].InventoryID = 0; [COLOR=#008000]// 0 id = for the first item, 1 [/COLOR][COLOR=#008000]id [/COLOR][COLOR=#008000]= second item... etc[/COLOR]
[COLOR=#ff0000]Potatoes[/COLOR].itemID = [COLOR=#ff0000]101032[/COLOR]; [COLOR=#008000]// item code[/COLOR]
[COLOR=#ff0000]Potatoes[/COLOR].quantity = 1; [COLOR=#008000]// item quantity[/COLOR]
plr->AddItemToBackpackSlot(0, [COLOR=#ff0000]Potatoes[/COLOR]); [COLOR=#008000]// player(plr) backpack slot[/COLOR]
that is the reason why i said is just an example and there is different waysjust an example, there is diferent ways to give items to the player loadout