What's new

Skrypt na otrzymywanie cc po wbiciu lvl-a!

Status
Not open for further replies.

doktor blant

Active User
Joined
Sep 25, 2010
Messages
89
Reaction score
3
Witam szukam skryptu na to ?e po wbiciu naprzyk?ad 50lvl-a gracz otrzyma 25cc do bp. Posiada z was moze ktos taki skrypt? Prosze o request
 

doktor blant

Active User
Joined
Sep 25, 2010
Messages
89
Reaction score
3
Odp: Skrypt na otrzymywanie cc po wbiciu lvl-a!

Refresh!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~``
 

orzeleagle122

Advanced User
Joined
May 18, 2010
Messages
449
Reaction score
16
Odp: Skrypt na otrzymywanie cc po wbiciu lvl-a!

Masz tu taki zaawansowany skrypt,
dodaje kazdej profesji item ktore sam wybierzesz:
doPlayerAddItem(cid,8910,1)
8910 -id itemu
1- ilosc.

elegancki skrypt ;)/

data/creaturescripts/scripts/itemadvance.lua
PHP:
local text = "You have been rewared 25cc and item your progress!" --Text when he gets level 50

function onAdvance(cid, skill, oldLevel, newLevel)
queststatus = getPlayerStorageValue(cid,44569)
if getPlayerLevel(cid) > 50 and queststatus == -1 then
        if isDruid(cid) == TRUE then
        doPlayerAddItem(cid,2160,25)
        doPlayerAddItem(cid,8910,1)
        doPlayerSendTextMessage(cid,22,text)
        setPlayerStorageValue(cid, 44569, 1)
        doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FIREWORK_YELLOW)
        elseif isKnight(cid) == TRUE then
        doPlayerAddItem(cid,2432,1)
        doPlayerAddItem(cid,2436,1)
        doPlayerAddItem(cid,2407,1)
        doPlayerAddItem(cid,2160,25)
        setPlayerStorageValue(cid, 44569, 1)
        doPlayerSendTextMessage(cid,22,text)
        doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FIREWORK_YELLOW)
        elseif isPaladin(cid) == TRUE then
        doPlayerAddItem(cid,2547,1)
        doPlayerAddItem(cid,2160,25)
        setPlayerStorageValue(cid, 44569, 1)
        doPlayerSendTextMessage(cid,22,text)
        doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FIREWORK_YELLOW)
        elseif isSorcerer(cid) == TRUE then
        doPlayerAddItem(cid,2160,25)
        doPlayerAddItem(cid,8922,1)
        setPlayerStorageValue(cid, 44569, 1)
        doPlayerSendTextMessage(cid,22,text)
        doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FIREWORK_YELLOW)
        end
end
return TRUE
end

data/creaturescripts/creaturescripts.xml
Code:
	<event type="advance" name="Advanceitems" event="script" value="itemadvance.lua"/>

data/creaturescripts/scripts/login.lua
znajdujesz:
PHP:
	registerCreatureEvent(cid, "GuildMotd")
i wklejasz pod tym:
PHP:
	registerCreatureEvent(cid, "Advanceitems")

podzro collocorpus/orzeleagle122
MateriaOTS admin ;)
 

doktor blant

Active User
Joined
Sep 25, 2010
Messages
89
Reaction score
3
Odp: Skrypt na otrzymywanie cc po wbiciu lvl-a!

WOW~! dziwie si? ?e taki skrypt udost?pni?e? ;p dzieki zamykam
 

elo1989

Advanced User
Joined
Feb 12, 2009
Messages
211
Reaction score
6
Odp: Skrypt na otrzymywanie cc po wbiciu lvl-a!

zajfajny skrypt tego potrzebowalem :)) pzodro :)) pyt jak usune powiedzmy 3 z 4 profesji to tylko 1 profka otrzyma item ?
 
Status
Not open for further replies.
Top