[POMOC] Pitanje za biz

Započeo [BR]Maki187, Oktobar 24, 2011, 01:39:24 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: larp
Detaljan opis problema: Imam samo pitanje, da li ima BIZ koji radi u larpu ? odnosno lupicu kad neko kupi to i to, da se u taj biz dodaju pare (ne sbiz oni rade, a neke sam podesio)
Pitam da bi znao sta me tacno ocekuje, jer sam video da u "/buy" nije podeseno da pare idu vlasniku biza, vec u sbiz, npr posle /clothes neidu isto nikom pare, pa da znam unapred, da neproveravam sve posebno, da li je tako za sve ?
Ako jeste, da znam da se bacim na posao... ovo pitam one koj iimaju isksutva sa ravensom :)
Unapred hvala svima :)
Dio skripte: /
Neke slike/video za lakse dobivanje pomoci(neobavezno): /

Kolko ja znam, u originalnom LARPu, radi i SBiz i Biz system (:
Aequam memento rebus in arduis servare mentem.

Znaci verovatno sam ja dok sam editovao, nesto sj***, mada gledao sam u skirpti za "/buy" npr, kad se kupi nesto, pare id usamo u ja msm sbiz 9, ne pojedinacno u 24/7... a dobro, hvala u svakom sl. na odg, jednostanvo cu izmeniti malo biz sistem... hvala, inace /setbizz radi, al biz kao biz ne lepo...

Reci mi, jel radiš LARP edit ili Raven's. (pitam jer mnogi radu Raven's, a zovu LARP)


Citat: [A]Maki187 poslato Oktobar 24, 2011, 18:39:39 POSLE PODNE
radim ravens, a tacno, zovem ga larp... :)

Onda imaš pravo da si nešto čačkao. ;)

Jer znam da tamo radi biz sys. :P

sbiz sistem radi, al evo primera za market

if(dialogid == 69)
		{
		    if(response)
		    {
				if (listitem == 0 && GetPlayerMoney(playerid) > 149)
				{
				    if(PlayerInfo[playerid][pTraderPerk] > 0)
				    {
						new skill = 150 / 100;
						new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
						new payout = 150 - price;
				        format(string, sizeof(string), "~r~-$%d", payout);
						GameTextForPlayer(playerid, string, 5000, 1);
						SafeGivePlayerMoney(playerid,- payout);
						SBizzInfo[9][sbTill] += payout;
						ExtortionSBiz(9, payout);
				    }
				    else
				    {
				        format(string, sizeof(string), "~r~-$%d", 150);
						GameTextForPlayer(playerid, string, 5000, 1);
						SafeGivePlayerMoney(playerid,-150);
						SBizzInfo[9][sbTill] += 150;
						ExtortionSBiz(9, 150);
				    }
					PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
					new randphone = 100000 + random(899999);//minimum 1000  max 9999
					PlayerInfo[playerid][pPnumber] = randphone;
					format(string, sizeof(string), "** Kupili ste mobilni, vas broj je: %d", randphone);
					SendClientMessage(playerid, COLOR_GRAD4, string);
					SendClientMessage(playerid, COLOR_GRAD5, "Svoj broj mozes proveriti bilo kad, kucajuci /stats");
					SendClientMessage(playerid, COLOR_WHITE, "POMOC: Da bi saznao komande telefona, kucaj /help");
					return 1;
				}
				else if (listitem == 1 && GetPlayerMoney(playerid) > 500)
				{
				    if(PlayerInfo[playerid][pTraderPerk] > 0)
				    {
						new skill = 500 / 100;
						new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
						new payout = 500 - price;
						SafeGivePlayerMoney(playerid,- payout);
						SBizzInfo[9][sbTill] += payout;
						ExtortionSBiz(9, payout);
						format(string, sizeof(string), "~r~-$%d", payout);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					else
					{
					    SafeGivePlayerMoney(playerid,-500);
						SBizzInfo[9][sbTill] += 500;
						ExtortionSBiz(9, 500);
						format(string, sizeof(string), "~r~-$%d", 500);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
					new prize;
					new symb1[32]; new symb2[32]; new symb3[32];
					new randcard1 = random(10);//minimum 1000  max 9999
					new randcard2 = random(10);//minimum 1000  max 9999
					new randcard3 = random(10);//minimum 1000  max 9999
					if(randcard1 >= 5)
					{
						format(symb1, sizeof(symb1), "~b~]");
						randcard1 = 1;
					}
					else if(randcard1 <= 4 && randcard1 >= 2)
					{
						format(symb1, sizeof(symb1), "~g~]");
						randcard1 = 2;
					}
					else if(randcard1 < 2)
					{
						format(symb1, sizeof(symb1), "~y~]");
						randcard1 = 3;
					}
					if(randcard2 >= 5)
					{
						format(symb2, sizeof(symb2), "~b~]");
						randcard2 = 1;
					}
					else if(randcard2 <= 4 && randcard2 >= 2)
					{
						format(symb2, sizeof(symb2), "~g~]");
						randcard2 = 2;
					}
					else if(randcard2 < 2)
					{
						format(symb2, sizeof(symb2), "~y~]");
						randcard2 = 3;
					}
					if(randcard3 >= 5)
					{
						format(symb3, sizeof(symb3), "~b~]");
						randcard3 = 1;
					}
					else if(randcard3 <= 4 && randcard3 >= 2)
					{
						format(symb3, sizeof(symb3), "~g~]");
						randcard3 = 2;
					}
					else if(randcard3 < 2)
					{
						format(symb3, sizeof(symb3), "~y~]");
						randcard3 = 3;
					}
					if(randcard1 == randcard2 && randcard1 == randcard3)
					{
						if(randcard1 > 5)
						{
							prize = 2500;
						}
						if(randcard1 <= 4 && randcard1 >= 2)
						{
							prize = 1500;
						}
						if(randcard1 < 2)
						{
							prize = 500;
						}
						SafeGivePlayerMoney(playerid,prize);
						SBizzInfo[9][sbTill] -= prize;
						ExtortionSBiz(9, prize);
						format(string, sizeof(string), "%s %s %s ~n~~n~~w~~g~$%d",symb1,symb2,symb3, prize);
					}
					else
					{
						format(string, sizeof(string), "%s %s %s ~n~~n~~w~~r~$0",symb1,symb2,symb3);
					}
					GameTextForPlayer(playerid, string, 3000, 3);
					return 1;
				}
				else if (listitem == 2 && GetPlayerMoney(playerid) > 10)
				{
				    if(PlayerInfo[playerid][pTraderPerk] > 0)
				    {
						new skill = 10 / 100;
						new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
						new payout = 10 - price;
						SafeGivePlayerMoney(playerid,- payout);
						SBizzInfo[9][sbTill] += payout;
						ExtortionSBiz(9, payout);
						GameTextForPlayer(playerid, "~r~-$10", 5000, 1);
					}
					else
					{
					    SafeGivePlayerMoney(playerid,- 10);
						SBizzInfo[9][sbTill] += 10;
						ExtortionSBiz(9, 10);
						format(string, sizeof(string), "~r~-$%d", 100);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
	                PlayerInfo[playerid][pPhoneBook] = 1;
					format(string, sizeof(string), "   Kupili ste imenik, sad mozete da saznate broj bilo kog igraca !");
					SendClientMessage(playerid, COLOR_GRAD4, string);
					SendClientMessage(playerid, COLOR_WHITE, "POMOC: Kucajte /number <id/ime>.");
					return 1;
				}
				else if (listitem == 3 && GetPlayerMoney(playerid) > 10)
				{
				    if(PlayerInfo[playerid][pTraderPerk] > 0)
				    {
						new skill = 10 / 100;
						new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
						new payout = 10 - price;
						SafeGivePlayerMoney(playerid,- payout);
						SBizzInfo[9][sbTill] += payout;
						ExtortionSBiz(9, payout);
						format(string, sizeof(string), "~r~-$%d", payout);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					else
					{
					    SafeGivePlayerMoney(playerid,-10);
						SBizzInfo[9][sbTill] += 10;
						ExtortionSBiz(9, 10);
						format(string, sizeof(string), "~r~-$%d", 10);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
					gDice[playerid] = 1;
					format(string, sizeof(string), "   Kupili ste kockicu.");
					SendClientMessage(playerid, COLOR_GRAD4, string);
					SendClientMessage(playerid, COLOR_WHITE, "Pomoc: Kucajte /dice ");
					return 1;
				}
				else if (listitem == 4 && GetPlayerMoney(playerid) > 20)
				{
				    PlayerInfo[playerid][pFuel] = 20;
				    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
				    SendClientMessage(playerid, COLOR_WHITE, "POMOC: Kucajte /fillup");
				    GameTextForPlayer(playerid, "~r~-$20", 5000, 1);
					return 1;
				}
				else if (listitem == 5 && GetPlayerMoney(playerid) > 1)
				{
				    if(PlayerInfo[playerid][pTraderPerk] > 0)
			    	{
						new skill = 1 / 100;
						new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
						new payout = 1 - price;
						SafeGivePlayerMoney(playerid,- payout);
						format(string, sizeof(string), "~r~-$%d", payout);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					else
					{
					    SafeGivePlayerMoney(playerid,-1);
						format(string, sizeof(string), "~r~-$%d", 1);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					Condom[playerid] ++;
					PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
					format(string, sizeof(string), "Kupili ste kondom.");
					SendClientMessage(playerid, COLOR_GRAD4, string);
					return 1;
				}
				else if (listitem == 6 && GetPlayerMoney(playerid) > 49)
				{
					SafeGivePlayerMoney(playerid, - 50);
					format(string, sizeof(string), "~r~-$%d", 50);
					GameTextForPlayer(playerid, string, 5000, 1);
					PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
					format(string, sizeof(string), "Kupili ste kameru.");
					SendClientMessage(playerid, COLOR_GRAD4, string);
					SafeGivePlayerWeapon(playerid, 43, 20);
					return 1;
				}
				else if (listitem == 7 && GetPlayerMoney(playerid) > 499)
				{
				    if(PlayerInfo[playerid][pLevel] < 5)
				    {
						SendClientMessage(playerid, COLOR_GREY, "Moras biti lvl 5 da bi kupio masku!");
						return 1;
				    }
				    if(PlayerInfo[playerid][pMask] != 0)
				    {
				        SendClientMessage(playerid, COLOR_GREY, "Vec imas masku!");
						return 1;
				    }
				    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
				    {
	                    GameTextForPlayer(playerid, "~w~Free", 5000, 1);
					}
					else
					{
					    SafeGivePlayerMoney(playerid, - 500);
						format(string, sizeof(string), "~r~-$%d", 500);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
					format(string, sizeof(string), "Kupili ste masku.");
					GameTextForPlayer(playerid, string, 5000, 1);
					SendClientMessage(playerid, COLOR_GRAD4, string);
					SendClientMessage(playerid, COLOR_WHITE, "POMOC: /maskon ili /maskoff");
					PlayerInfo[playerid][pMask] = 1;
					return 1;
				}
				else if (listitem == 8 && GetPlayerMoney(playerid) > 99)
				{
				    if(PlayerInfo[playerid][pWatch] != 0)
				    {
				        SendClientMessage(playerid, COLOR_GREY, "Vec imas sat!");
				        return 1;
				    }
				    SafeGivePlayerMoney(playerid, - 100);
				    format(string, sizeof(string), "~r~-$%d", 100);
				    GameTextForPlayer(playerid, string, 5000, 1);
				    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
				    format(string, sizeof(string), "Kupili ste sat.");
				    SendClientMessage(playerid, COLOR_WHITE, "POMOC: /time");
				    SendClientMessage(playerid, COLOR_GRAD4, string);
				    PlayerInfo[playerid][pWatch] = 1;
					TextDrawShowForPlayer(playerid, Textdraw56);
					TextDrawShowForPlayer(playerid, Textdraw57);
					TextDrawShowForPlayer(playerid, Textdraw58);
				}
				else if (listitem == 9 && GetPlayerMoney(playerid) > 149)
				{
				    if(PlayerInfo[playerid][pFishTool] != 0)
				    {
				        SendClientMessage(playerid, COLOR_GREY, "** Vec posedujes ribarsku opremu !");
				        return 1;
				    }
				    SafeGivePlayerMoney(playerid, - 150);
				    format(string, sizeof(string), "~r~-$%d", 150);
				    GameTextForPlayer(playerid, string, 5000, 1);
				    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
				    SendClientMessage(playerid, COLOR_GRAD4, "Kupio si ribarsku opremu .");
				    PlayerInfo[playerid][pFishTool] = 1;
				}
				else if (listitem == 10 && GetPlayerMoney(playerid) > 9)
				{
				    if(Rope[playerid] >= 5)
				    {
				        SendClientMessage(playerid, COLOR_GREY, "** Vec imas konopac (5)!");
				        return 1;
				    }
				    SafeGivePlayerMoney(playerid, - 10);
				    format(string, sizeof(string), "~r~-$%d", 10);
				    GameTextForPlayer(playerid, string, 5000, 1);
				    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
				    SendClientMessage(playerid, COLOR_GRAD4, "Kupio si konopac.");
				    SendClientMessage(playerid, COLOR_GRAD4, "POMOC: Da bi vezao nekog kucaj /tie");
				    Rope[playerid]++;
				}
				else if (listitem == 11 && GetPlayerMoney(playerid) > 49)
				{
				    SafeGivePlayerMoney(playerid, - 50);
				    format(string, sizeof(string), "~r~-$%d", 50);
				    GameTextForPlayer(playerid, string, 5000, 1);
				    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
				    SendClientMessage(playerid, COLOR_GRAD4, "Kupili ste sprej.");
				    SafeGivePlayerWeapon(playerid, 41, 200);
				}
				else if (listitem == 12 && GetPlayerMoney(playerid) > 4)
				{
				    if(PlayerInfo[playerid][pLighter] != 0)
				    {
				        SendClientMessage(playerid, COLOR_GREY, "** Vec imas upaljac ! ");
				        return 1;
				    }
				    SafeGivePlayerMoney(playerid, - 5);
				    PlayerInfo[playerid][pLighter] = 30;
				    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
				    format(string, sizeof(string), "~r~-$%d", 5);
				    GameTextForPlayer(playerid, string, 5000, 1);
				    SendClientMessage(playerid, COLOR_GRAD4, "Kupili ste upaljac.");
				    OnPlayerUpdateEx(playerid);
				    return 1;
				}
				else if (listitem == 13 && GetPlayerMoney(playerid) > 29)
				{
				    if(PlayerInfo[playerid][pCigarettes] != 0)
				    {
				        format(string, sizeof(string), "   Vec imas %d cigareta.", PlayerInfo[playerid][pCigarettes]);
				        SendClientMessage(playerid, COLOR_GREY, string);
				        return 1;
				    }
				    SafeGivePlayerMoney(playerid, - 30);
				    PlayerInfo[playerid][pCigarettes] = 20;
				    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
				    format(string, sizeof(string), "~r~-$%d", 30);
				    GameTextForPlayer(playerid, string, 5000, 1);
				    SendClientMessage(playerid, COLOR_GRAD4, "Kupili ste cigare.");
				    SendClientMessage(playerid, COLOR_WHITE, "POMOC: Da bi pusili kucajte /smoke !");
				    OnPlayerUpdateEx(playerid);
				}
				else if (listitem == 14 && GetPlayerMoney(playerid) > 250)
				{
				    if(PlayerInfo[playerid][pTraderPerk] > 0)
			    	{
						new skill = 250 / 100;
						new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
						new payout = 250 - price;
						SafeGivePlayerMoney(playerid, - payout);
						format(string, sizeof(string), "~r~-$%d", payout);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					else
					{
					    SafeGivePlayerMoney(playerid, - 250);
						format(string, sizeof(string), "~r~-$%d", 250);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
					format(string, sizeof(string), "Kupili ste MP3.");
					SendClientMessage(playerid, COLOR_GRAD4, string);
					SendClientMessage(playerid, COLOR_WHITE, "POMOC: Kucajte /music");
					PlayerInfo[playerid][pCD] = 1;
					return 1;
				}
				else if (listitem == 15 && GetPlayerMoney(playerid) > 1500)
				{
					PlayerInfo[playerid][pGPS] = 1;
					if(PlayerInfo[playerid][pTraderPerk] > 0)
			    	{
						new skill = 1500 / 100;
						new price = (skill)*(PlayerInfo[playerid][pTraderPerk]);
						new payout = 1500 - price;
						SafeGivePlayerMoney(playerid,- payout);
						SBizzInfo[9][sbTill] += payout;
						ExtortionSBiz(9, payout);
						format(string, sizeof(string), "~r~-$%d", payout);
						GameTextForPlayer(playerid, string, 5000, 1);
					}
					else
					{
					    SafeGivePlayerMoney(playerid,-1500);
						SBizzInfo[9][sbTill] += 1500;
						ExtortionSBiz(9, 1500);
						GameTextForPlayer(playerid, "~r~-1500", 5000, 1);
					}
					SBizzInfo[9][sbProducts]--;
					PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
					SendClientMessage(playerid, COLOR_GRAD4, "Kupili ste GPS Add-On.");
					SendClientMessage(playerid, COLOR_WHITE, "POMOC: Kucajte /gpsfind <X> <Y> <Z> ili /gps");
					return 1;
				}
				
			}
		}


Svuda se vidi SBizzInfo[9][sbTill], nije uradjeno da ide posebno u biznise ( id 7, 9 ,10, 31, 32...36).... al dobro, saznao sam odgovor, hvala... :)
Svejedno cu srediti to, moracu isto da radim za svaki biz posebno, al ok.... hvala na odgovorima :)