![Forum Info Lugormod Strona Główna](http://lugormod.tk/ico/2ill9gz.png) |
Info Lugormod PSL - Polska Strona Lugormoda
|
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Special
Administrator
Dołączył: 17 Lut 2007
Posty: 1006
Przeczytał: 0 tematów
Pomógł: 44 razy Ostrzeżeń: 0/5 Skąd: Miasto Lugormoda
|
Wysłany: Czw 11:43, 29 Sty 2009 Temat postu: Skrypty do T2: Loteria |
|
|
Skrypty do T2
By mikaka
Loteria:
Jeśli ktoś pamięta to była taka loteria na Trip na Luxous Lmd.
Polega na tym że podłączamy to przez t2_jscript do buttonu ze spawnflags,8192 na kupowanie biletów do loterii. [Buy Ticket 20 cr lub coś takiego]
Bilety sie skończą to jest wtedy losowany los. Jest także bonusowa wygrana.
Lepiej nie zmieniać kodu no chyba że wartości pieniężne.
Kod: | local int jackpotrandom = random(50,60);
local int randot = random(1,10);
local int lastwinner;
local int leftticket;
local int jackpot = random(200,500);
local int bought;
local int ticket10;
local int ticket9;
local int ticket8;
local int ticket7;
local int ticket6;
local int ticket5;
local int ticket4;
local int ticket3;
local int ticket2;
local int ticket1;
if bought == 9 then
ticket10 = victim;
if randot == 1 then
echo(getother(ticket1,"netname")." ^7has won the lottery and is awarded 200 CR");
give_credits ticket1,200;
lastwinner = ticket1;
elseif randot == 2 then
echo(getother(ticket2,"netname")." ^7has won the lottery and is awarded 200 CR");
give_credits ticket2,200;
lastwinner = ticket2;
elseif randot == 3 then
echo(getother(ticket3,"netname")." ^7has won the lottery and is awarded 200 CR");
give_credits ticket3,200;
lastwinner = ticket3;
elseif randot == 4 then
echo(getother(ticket4,"netname")." ^7has won the lottery and is awarded 200 CR");
give_credits ticket4,200;
lastwinner = ticket4;
elseif randot == 5 then
echo(getother(ticket5,"netname")." ^7has won the lottery and is awarded 200 CR");
give_credits ticket5,200;
lastwinner = ticket5;
elseif randot == 6 then
echo(getother(ticket6,"netname")." ^7has won the lottery and is awarded 200 CR");
give_credits ticket6,200;
lastwinner = ticket6;
elseif randot == 7 then
echo(getother(ticket7,"netname")." ^7has won the lottery and is awarded 200 CR");
give_credits ticket7,200;
lastwinner = ticket7;
elseif randot == 8 then
echo(getother(ticket8,"netname")." ^7has won the lottery and is awarded 200 CR");
give_credits ticket8,200;
lastwinner = ticket8;
elseif randot == 9 then
echo(getother(ticket9,"netname")." ^7has won the lottery and is awarded 200 CR");
give_credits ticket9,200;
lastwinner = ticket9;
elseif randot == 10 then
echo(getother(ticket10,"netname")." ^7has won the lottery and is awarded 200 CR");
give_credits ticket10,200;
lastwinner = ticket10;
endif
if jackpotrandom == 52 then
rcon("announce 4 ".getother(lastwinner,"netname")." ^7has won the jackpot!");
give_credits lastwinner,jackpot;
echo ("The current jackpot is worth additional ^3".jackpot."^7CR!!" );
else
echo("^1The jackpot is not won :(");
echo("jackpot chance number: ".jackpotrandom." , has to be 52 to win the jackpot");
endif
bought = 0;
elseif bought == 8 then
ticket9 = victim;
bought = 9;
leftticket = 10 - bought;
echo (leftticket." ^3tickets left for the lottery.");
elseif bought == 7 then
ticket8 = victim;
bought = 8;
leftticket = 10 - bought;
echo (leftticket." ^3tickets left for the lottery.");
elseif bought == 6 then
ticket7 = victim;
bought = 7;
leftticket = 10 - bought;
echo (leftticket." ^3tickets left for the lottery.");
elseif bought == 5 then
ticket6 = victim;
bought = 6;
leftticket = 10 - bought;
echo (leftticket." ^3tickets left for the lottery.");
elseif bought == 4 then
ticket5 = victim;
bought = 5;
leftticket = 10 - bought;
echo (leftticket." ^3tickets left for the lottery.");
elseif bought == 3 then
ticket4 = victim;
bought = 4;
leftticket = 10 - bought;
echo (leftticket." ^3tickets left for the lottery.");
elseif bought == 2 then
ticket3 = victim;
bought = 3;
leftticket = 10 - bought;
echo (leftticket." ^3tickets left for the lottery.");
elseif bought == 1 then
ticket2 = victim;
bought = 2;
leftticket = 10 - bought;
echo (leftticket." ^3tickets left for the lottery.");
elseif bought == 0 then
ticket1 = victim;
bought = 1;
leftticket = 10 - bought;
echo (leftticket." ^3tickets left for the lottery.");
endif
|
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Adanos
Master
Dołączył: 13 Cze 2008
Posty: 297
Przeczytał: 0 tematów
Pomógł: 7 razy Ostrzeżeń: 2/5
|
Wysłany: Czw 19:48, 29 Sty 2009 Temat postu: |
|
|
Lol co ja tu robie, to jednak bardziej skomplikowane niz sadzilem;f ale fajnie ze to wrzuciles. bardzo fajnie. pozdro x
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Special
Administrator
Dołączył: 17 Lut 2007
Posty: 1006
Przeczytał: 0 tematów
Pomógł: 44 razy Ostrzeżeń: 0/5 Skąd: Miasto Lugormoda
|
Wysłany: Czw 20:45, 29 Sty 2009 Temat postu: |
|
|
jakby co postaram sie wytłumaczyć
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Sector
Słaby Player
Dołączył: 14 Lis 2008
Posty: 46
Przeczytał: 0 tematów
Pomógł: 7 razy Ostrzeżeń: 4/5 Skąd: z dupy
|
Wysłany: Czw 20:47, 29 Sty 2009 Temat postu: |
|
|
Zaajeeebales mi jednego skrypta! oO!!
Post został pochwalony 0 razy
Ostatnio zmieniony przez Sector dnia Czw 20:48, 29 Sty 2009, w całości zmieniany 1 raz
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Special
Administrator
Dołączył: 17 Lut 2007
Posty: 1006
Przeczytał: 0 tematów
Pomógł: 44 razy Ostrzeżeń: 0/5 Skąd: Miasto Lugormoda
|
Wysłany: Czw 20:50, 29 Sty 2009 Temat postu: |
|
|
To akurat jest skrypt Pipobony (z tego co wiem), którego dostałem od stoissa tylko że dostałem zepsutego i mik go naprawił
Post został pochwalony 0 razy
Ostatnio zmieniony przez Special dnia Czw 22:15, 29 Sty 2009, w całości zmieniany 1 raz
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Revan
Administrator
Dołączył: 22 Lut 2007
Posty: 166
Przeczytał: 0 tematów
Pomógł: 18 razy Ostrzeżeń: 0/5
|
Wysłany: Czw 23:14, 29 Sty 2009 Temat postu: |
|
|
jedna linijka była źle napisana
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Adanos
Master
Dołączył: 13 Cze 2008
Posty: 297
Przeczytał: 0 tematów
Pomógł: 7 razy Ostrzeżeń: 2/5
|
Wysłany: Pią 19:01, 30 Sty 2009 Temat postu: |
|
|
która?
local int jackpot = random(200,500); =
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
|
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach
|
fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2005 phpBB Group
|