What's new

Jak zroic CC od danego levela

Status
Not open for further replies.

Misio021

Advanced User
Joined
Jul 11, 2010
Messages
230
Reaction score
2
Witam potrzebuje pomocy nie wiem jak zoribic ze po wbiciu np 50levela gracz otrzyma 5cc . Za pomoc repput


z g?ry dzi?kuje
 

orzeleagle122

Advanced User
Joined
May 18, 2010
Messages
449
Reaction score
16
Odp: Jak zroic CC od danego levela

Za pomoc repput



w creaturescripts.xml dopisujesz:
Code:
	<event type="advance" name="5cc" event="script" value="5cc.lua"/>

teraz idziesz do
/tfs/data/creaturescripts/scripts/5cc.lua
i wklejasz:
PHP:
function onAdvance(cid, type, oldlevel, newlevel)
if (oldlevel ~= newlevel and type == SKILL__LEVEL) then
if (newlevel >= 50 and getPlayerStorageValue(cid, 44562) == -1) then
doPlayerAddItem(cid, 2160, 5)
doPlayerSendTextMessage(cid,21,'Congratulations! You have reached level 50! As a special bonus administrators, you have received 5 Cristal Coins.')
setPlayerStorageValue(cid, 44562, 1)
end
end
return true
end

teraz dziesz do
/tfs/data/creaturescripts/scripts/login.lua
i po
Code:
	registerCreatureEvent(cid, "ReportBug")
dopisujesz:
Code:
	registerCreatureEvent(cid, "5cc")

pozdrawiam
-

Notka moderatorska:
+1 pkt OT Expert
 
Last edited by a moderator:

Misio021

Advanced User
Joined
Jul 11, 2010
Messages
230
Reaction score
2
Odp: Jak zroic CC od danego levela

Kolego i jak to dodam to juz bedzie samo dodawa?o cc? ?? czy musze w skszyniach
 

Warcho

User
Joined
Nov 10, 2010
Messages
47
Reaction score
1
Odp: Jak zroic CC od danego levela

jak sie wbije 50 lvl automatycznie dojdzie cc
 

Misio021

Advanced User
Joined
Jul 11, 2010
Messages
230
Reaction score
2
Odp: Jak zroic CC od danego levela

Musia?em cos zle dodac bo nie dzia?a?o a juz smiga dzi?kuje za Pomoc i oczewisice Repucik kolego bo jestes dobry :D
 
Status
Not open for further replies.
Top