What's new

Pomoc z % itemu

Status
Not open for further replies.

Karshek

User
Joined
Feb 20, 2010
Messages
16
Reaction score
0
Witajcie, potrzebuje skrypt na item, kt?ry:
- dodaje 20% hp i many po uzyciu
- mo?na go uzyc ile razy sie chce
- Po uzyciu napis pomaranczowy nad postacia "I feel the best"
- Efekt po uzyciu na graczu to "16"

Wiem ze znajdzie sie ktos to bedzie potrafil to zrobic :p z gory dziekuje
oczywiscie zrobione to w actions

Notka moderatorska:
Z?y dzia? - przenosz? do request.



@edit
Potrzebuje tez na dzwignie dajaca 1 lvl za 10golda. Mozna uzywac ile razy sie chce, chcialbym abyscie pokolei napisali gdzie i co umiescic aby ta dzwignie zrobic.

z gory dziekuje
 

Karshek

User
Joined
Feb 20, 2010
Messages
16
Reaction score
0
Odp: Pomoc z % itemu

naprawde nikt nie umie tego zrobic..?
Notka moderatorska:
Za du?o od?wie?e?.


Zamiast edytowac mi posty pom?g?by?...
 
Last edited:

Casey

Active User
Joined
Mar 12, 2010
Messages
58
Reaction score
0
Odp: Pomoc z % itemu

masz g?upcze g?upi z oka strzelony!!!
MOZNA U?YWAC OD 500 LVL!
dawaj reputa bo pomog?em!

to jest actions jak cos g?upcze!
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local oplata = 100000
if doPlayerRemoveMoney(cid, oplata) == TRUE then
		if getPlayerLevel(cid) >= 500 then
			addLevel(cid,1)
				doPlayerSendTextMessage(cid,22,"Added exp pls don't spam ! ;]")
			end 
		else 
		doPlayerSendTextMessage(cid,22,"You don't have 500 lvl or 10 gold.")
		end 
	end
 

Karshek

User
Joined
Feb 20, 2010
Messages
16
Reaction score
0
Odp: Pomoc z % itemu

Dobra zrobilem sam, o to skrypt na ten item jakby ktos chcial
PHP:
function onUse(cid, item, frompos, item2, topos)

local exhausted_seconds = 0.5
local exhausted_storagevalue = 6721
local howAddHp = (getPlayerMaxHealth(cid) / 5)
local howAddMana = (getPlayerMaxMana(cid) / 5)

if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then
	doSendMagicEffect(getPlayerPosition(cid),16)
	doPlayerAddMana(cid, howAddMana)
  	 doPlayerAddHealth(cid, howAddHp)
	doPlayerSay(cid,"Power is back [".. howAddMana .."] up!", 17)
	setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + 

exhausted_seconds)
    else
	doSendMagicEffect(cid, 12)
	doPlayerSendCancel(cid, "You are exhausted.")
end
end

A teraz dzwignia
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local oplata = 100000
if doPlayerRemoveMoney(cid, oplata) == TRUE then
		if getPlayerLevel(cid) >= 0 then
			addLevel(cid,1)
		doPlayerSendTextMessage(cid,22,"Your level is unblocked, have fun!")
		doSendMagicEffect(getPlayerPosition(cid), 233) 
			end 
		else 
		doPlayerSendTextMessage(cid,22,"You dont have 10 gold.")
		end 
	end
Code:
<action uniqueid="9999" script="dzwignia.lua" />
Notka moderatorska:
No to zamykam.
 
Last edited by a moderator:
Status
Not open for further replies.
Top