What's new

Actions Jak zrobi? kasyno?

Status
Not open for further replies.

Betrox

Active User
Joined
Jul 26, 2008
Messages
129
Reaction score
6
Odp: Jak zrobi? kasyno?

?wietny skrypt na 8.1, Da rad? zrobi? tak ?e nie tylko liczby gp co 5 cc ??? Na przyk?ad ?e k?adziemy 1cc dostajemy 2cc max... Lub k?adziemy 46 cc to dostajemy 92cc... Chodzi mi o to aby mo?na by?o po?o?y? ka?d? ilo?? cc...
 

kupa slonia1

New User
Joined
Sep 20, 2010
Messages
4
Reaction score
0
Odp: Jak zrobi? kasyno?

silnik mi pokazuje ze niazna komendy getkasa pomo
cy!
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 990 then
kasapos = {x=218, y=394, z=7, stackpos=255}
getkasa = getThingfromPos(kasapos)
winpos = {x=218, y=394, z=7}
if getkasa.itemid == 2160 and getkasa.type == 5 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,5)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,"Straciles 5 Crystal Coins :(.")
end
end
end
if rand == 2 then
doRemoveItem(getkasa.uid,5)
doCreateItem(2160,15,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22," Gratulacje Wygrales 15 Crystal Coins :).")
end
end
if getkasa.itemid == 2160 and getkasa.type == 10 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,10)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,"Straciles 10 Crystal Coins :(.")
end
if rand == 2 then
doRemoveItem(getkasa.uid,10)
doCreateItem(2160,30,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,"Gratulacje Wygrales 30 Crystal Coins :).")
end
end
if getkasa.itemid == 2160 and getkasa.type == 25 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,25)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,"Straciles 25 Crystal Coins :(.")
end
if rand == 2 then
doRemoveItem(getkasa.uid,25)
doCreateItem(2160,75,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22," Gratulacje Wygrales 75 Crystal Coins :) .")
end
end
if getkasa.itemid == 2160 and getkasa.type == 50 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,50)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,"Straciles 50 Crystal Coins :(.")
end
if rand == 2 then
doRemoveItem(getkasa.uid,50)
doCreateItem(2160,100,winpos)
doCreateItem(2160,50,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,"Gratulacje Wygrales 150 Crystal Coins :).")
end
end
if getkasa.itemid > 2160 or getkasa.itemid < 2160 then
doPlayerSendTextMessage(cid,22,"Poloz 5, 10, 25 Lub 50 Crystal Coins :) jezeli Chcesz Wejsc W Gre.")
end
if getkasa.itemid == 2160 and getkasa.type == 1 or getkasa.itemid == 2160 and getkasa.type == 2 or getkasa.itemid == 2160 and getkasa.type == 3 or getkasa.itemid == 2160 and getkasa.type == 4 or getkasa.itemid == 2160 and getkasa.type == 6 or getkasa.itemid == 2160 and getkasa.type == 7 or getkasa.itemid == 2160 and getkasa.type == 8
or getkasa.itemid == 2160 and getkasa.type == 9 or getkasa.itemid == 2160 and getkasa.type == 11 or getkasa.itemid == 2160 and getkasa.type == 12 or getkasa.itemid == 2160 and getkasa.type == 13 or getkasa.itemid == 2160 and getkasa.type == 14 or getkasa.itemid == 2160 and getkasa.type == 15 or getkasa.itemid == 2160 and getkasa.type == 16
or getkasa.itemid == 2160 and getkasa.type == 17 or getkasa.itemid == 2160 and getkasa.type == 18 or getkasa.itemid == 2160 and getkasa.type == 19 or getkasa.itemid == 2160 and getkasa.type == 20 or getkasa.itemid == 2160 and getkasa.type == 21 or getkasa.itemid == 2160 and getkasa.type == 22 or getkasa.itemid == 2160 and getkasa.type == 23
or getkasa.itemid == 2160 and getkasa.type == 24 or getkasa.itemid == 2160 and getkasa.type == 26 or getkasa.itemid == 2160 and getkasa.type == 27 or getkasa.itemid == 2160 and getkasa.type == 28 or getkasa.itemid == 2160 and getkasa.type == 29 or getkasa.itemid == 2160 and getkasa.type == 30 or getkasa.itemid == 2160 and getkasa.type == 31
or getkasa.itemid == 2160 and getkasa.type == 32 or getkasa.itemid == 2160 and getkasa.type == 33 or getkasa.itemid == 2160 and getkasa.type == 34 or getkasa.itemid == 2160 and getkasa.type == 35 or getkasa.itemid == 2160 and getkasa.type == 36 or getkasa.itemid == 2160 and getkasa.type == 37 or getkasa.itemid == 2160 and getkasa.type == 38
or getkasa.itemid == 2160 and getkasa.type == 39 or getkasa.itemid == 2160 and getkasa.type == 40 or getkasa.itemid == 2160 and getkasa.type == 41 or getkasa.itemid == 2160 and getkasa.type == 42 or getkasa.itemid == 2160 and getkasa.type == 43 or getkasa.itemid == 2160 and getkasa.type == 44 or getkasa.itemid == 2160 and getkasa.type == 45
or getkasa.itemid == 2160 and getkasa.type == 46 or getkasa.itemid == 2160 and getkasa.type == 47 or getkasa.itemid == 2160 and getkasa.type == 48 or getkasa.itemid == 2160 and getkasa.type == 49 or getkasa.itemid == 2160 and getkasa.type > 50 then
doPlayerSendTextMessage(cid,22,"Poloz 5, 10, 25 Lub 50 Crystal Coins :) jezeli Chcesz Wejsc W Gre.")
end
 

kaz717

New User
Joined
Jan 2, 2011
Messages
9
Reaction score
0
Odp: Jak zrobi? kasyno?

Zastanawia mnie po kiego grzyba u?yte do tego zosta?y uniqueIds, skoro mamy do dyspozycji actionIds x_x
Poza tym, do ka?dej stawki oddzielny skrawek kodu? Nie wygodniej po prostu mno?y? obstawion? ilo?? * 3? o_O


Zgadzam si? z elfem ;p
mo?na to napisa? troszk? pro?ciej i wygodniej nie ma sensu za?mieca? si? skryptami ;p
 

avatar12

Active User
Joined
Dec 17, 2010
Messages
103
Reaction score
4
Odp: Jak zrobi? kasyno?

mam problem...

gdzie mam wklei? ten pierwszy kod ??:
function onUse(cid, item, frompos, item2, topos)
...

@Edit

sorry za post, ju? wiem co i jak ;]
 
Last edited:

avatar12

Active User
Joined
Dec 17, 2010
Messages
103
Reaction score
4
Odp: Jak zrobi? kasyno?

znowu problem...
jak w?aczam silnik to wyskakuje mi co? takiego:

data/actions/scripts/kasyno2.lua:78: `end' experected <to clase `if' at line 2> n
ear `<eof>'
 
Last edited:

Fikusek

Banned
Joined
May 17, 2010
Messages
248
Reaction score
9
Odp: Jak zrobi? kasyno?

?adnie Opisane skrypt tez ladnie wykonany tylko do niektorych ots sie to niedaje bo mozna na tym bardzo bardzo duzo kasy wygra? ! ;/
Moja Ocena 5/10
Pozdrawiam Fikusek.
 

Regonos

Active User
Joined
Dec 30, 2010
Messages
69
Reaction score
22
Odp: Jak zrobi? kasyno?

Skrypt jest zrobiony swietnie...
Tylko ze nie ty go zrobiles a Smoczek Leon.

Dlatego nie oceniam :<

Skrypt moze nie dzialac na niektorych otsach gdyz pamietam ze uzywalem go na Evolutions 8.1

Pozdrawiam,
Regonos.
 

vascofm

New User
Joined
Jan 8, 2011
Messages
4
Reaction score
0
Odp: Jak zrobi? kasyno?

Dziwne, mi nie dzia?a na ots.. mimo ?e wszystko dobrze robie :) dodam ze mam xml evo 8.1
 

Ink

Active User
Joined
Oct 30, 2009
Messages
68
Reaction score
0
Odp: Jak zrobi? kasyno?

W ko?cu ko? to ?adnie opisa?
10/10
 

Animaxx

User
Joined
Jan 31, 2011
Messages
18
Reaction score
0
Odp: Jak zrobi? kasyno?

Nazwa tematu to pytanie? ^ ^ Powinno by? raczej w formie wypowiedzi...

A skrypt nie jest, a? tak dobry, ?eby ocenia? go na 10/10 ;] Co najwy?ej 6/10... Ja bym to zrobi? na zasadzie pobierania pozycji gracza, wtedy by? by jeden skrypt, nawet gdyby?my chcieli zrobi? wi?cej kasyn... :)

Pozdrawiam,
Animaxx.
 

BartexXx28

User
Joined
Mar 15, 2010
Messages
44
Reaction score
0
Odp: Jak zrobi? kasyno?

Ja mam silnik WoDBO i mi dziala. Na poczatku mialam problem ale juz zostal naprawiony. :D
 

Animaxx

User
Joined
Jan 31, 2011
Messages
18
Reaction score
0
Odp: Jak zrobi? kasyno?

@Up
To zale?y od tego jakie source by? kompilowany i jakie mia? funkcje, a nie czy masz WoDBO czy Naruto czy normal ; d
 

mial123

Advanced User
Joined
Apr 2, 2009
Messages
307
Reaction score
24
Odp: Jak zrobi? kasyno?

U mnie all dzia?a thx ziomek 10/10 za prac? :p
 

BartexXx28

User
Joined
Mar 15, 2010
Messages
44
Reaction score
0
Odp: Jak zrobi? kasyno?

@Up
WoDBO. Skrot od World of Dragon Ball Online :D pod tibie 8.0
 

Xole Airon

Active User
Joined
Jan 3, 2010
Messages
106
Reaction score
1
Odp: Jak zrobi? kasyno?

Mi nie dzia?? pisze w konsoli jakis b?ad z if
 
Status
Not open for further replies.
Top