What's new

[8.x] Ziolo

Status
Not open for further replies.
Joined
Dec 29, 2008
Messages
47
Reaction score
3
Zjarajcie sie wszyscy ;D

Tworzymy w data\actions\scripts ziolo.lua i wpisujemy

Code:
MAX_FOOD = 500
function onUse(cid, item, frompos, item2, topos)
-- Get food value depending on item.itemid
food = 60
if (getPlayerFood(cid) + food > MAX_FOOD) then
doPlayerSendCancel(cid,"O fuck... I took tooo much.")
return 1
end
doPlayerFeed(cid,food)
doRemoveItem(item.uid,1)
doPlayerAddHealth(cid,350)
doSendMagicEffect(topos,2)
doPlayerSay(cid,"It is great stuff!",1)
return 1
end



Pozniej w actions.xml (data\actions\) dodajemy taka linijke:

Code:
<action itemid="2802" script="ziolo.lua" />

2802 to ID ziola

Pozdro ~,~
;)
 

mikanus

New User
Joined
Apr 10, 2008
Messages
1
Reaction score
0
Odp: [8.x] Ziolo

a popraw zeby upija?o, jak mozesz bede wdzieczny
 

Xardass92

Active User
Joined
Aug 22, 2008
Messages
109
Reaction score
2
Odp: [8.x] Ziolo

mam t? sam? pro?b? ;)
Daj? wam tutaj grafik? jak kto? potrzebuje ;]
23326xl4.png
 

Imerror

New User
Joined
Jan 29, 2009
Messages
2
Reaction score
0
Odp: [8.x] Ziolo

heh fajowy skrypt ;] jeszcze gdyby? fifke dorobi? albo co? by?o by git :D
 

Nice OTS

User
Joined
Feb 16, 2009
Messages
24
Reaction score
0
Odp: [8.x] Ziolo

Super skrypt...
Xardass92 chyba kiedy? skorzystam z tej grafiki ;]
Ju? u?ywam ten skrypt na OTS...
Gdy ma si? zio?o i faje wodn? to wtedy mo?esz zabra? Dilera (NPC GOHANSA)

Pozdro
 

Michiginester

New User
Joined
Apr 13, 2008
Messages
3
Reaction score
0
Odp: [8.x] Ziolo

id 5953 czyli "marijuana":D
jest bardziej podobna do ziola
 

leman12

Advanced User
Joined
May 20, 2008
Messages
202
Reaction score
2
Odp: [8.x] Ziolo

no fajne ale co wogule to zio?o robi?? dodaje speeda? dodaje defa? dodaje hp? cokolwiek?
 
Status
Not open for further replies.
Top