What's new

Pomocy !!! HELP FAST

Status
Not open for further replies.

Norbert1920

Active User
Joined
Jan 19, 2009
Messages
75
Reaction score
0
Witam mam taki problem nie umiem znale?c skryptu na automatyczne dodawanie promotion po wbiciu 20 lvl zrobi mi kto? taki skrypt ze wbijam 20 lvl i bez zadnego kupna staje si? ! ROYAL PALLADYNEM, ELITE KNIGHTEM.. itp..

AD.2
M?j Drugi b??d to mam swoj ots i wchodze i mi nie ruszaj? sie potwory na OTS. jestem zwyk?ym playerem. PROSZE O POMOC ZA POMOC REPUT ^^
 

keal1

Advanced User
Joined
Dec 8, 2009
Messages
339
Reaction score
21
Odp: Pomocy !!! HELP FAST

Z tym skryptem na auto promotion zobacz czy dzia?a

function onAdvance(cid, skill, oldLevel, newLevel)
if(getPlayerLevel(cid) == 20) then
doPlayerAddPromotion(cid)
return true
end

Ucz? si? wi?c mog?em popelnic b?ad; ) , Mam nadzieje ze pomog?em: )
 
Last edited:

Norbert1920

Active User
Joined
Jan 19, 2009
Messages
75
Reaction score
0
Odp: Pomocy !!! HELP FAST

Obja?ni ktos gdzie co i gdzie mam wklei? ;|
 

keal1

Advanced User
Joined
Dec 8, 2009
Messages
339
Reaction score
21
Odp: Pomocy !!! HELP FAST

Wchodzisz w data/creaturescripts/scripts i tworzysz plik , autopromotion.lua

Wklejasz do niego :

function onAdvance(cid, skill, oldLevel, newLevel)
if(getPlayerLevel(cid) == 20) then
doPlayerAddPromotion(cid)
return true
end

Nastepnie wchodzisz w creaturescripts.xml

I dodajesz linjk? :
<event type="advance" name="autopromotion" event="script" value="autopromotion.lua"/>

Nast?pnie data/creaturescripts/scripts szukasz login.lua

I tam ni?ej dodajesz dodaj :

registerCreatureEvent(cid, "autopromotion")


Dzi?kuje mam nadziej? ?e pomog?em :)

Pozdrawiam !!
 

Krecioo

Colorful!
Joined
Sep 6, 2010
Messages
416
Reaction score
67
Odp: Pomocy !!! HELP FAST

Je?li chodzi o drugi b??d to wci?nij alt+ctrl+delete, wejd? w zak?adk? Procesy, znajd? proces twojego serwera i kliknij na niego prawym przyciskiem myszy. Teraz dajesz Ustaw priorytet i zaznacz Czasu rzeczywistego.
 

Norbert1920

Active User
Joined
Jan 19, 2009
Messages
75
Reaction score
0
Odp: Pomocy !!! HELP FAST

B?ad:
[10/10/2010 20:45:28] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/autopromotion.lua)
[10/10/2010 20:45:28] data/creaturescripts/scripts/autopromotion.lua:5: 'end' expected (to close 'function' at line 1) near '<eof>'
Poprawi Kto?:

function onAdvance(cid, skill, oldLevel, newLevel)
if(getPlayerLevel(cid) == 20) then
doPlayerAddPromotion(cid)
return true
end
 

Scootyy

Senior User
Joined
Jul 26, 2009
Messages
564
Reaction score
12
Age
34
Odp: Pomocy !!! HELP FAST

function onAdvance(cid, skill, oldLevel, newLevel)
if(getPlayerLevel(cid) == 20) then
doPlayerAddPromotion(cid)
end
return true
end

nie jestem skrypterem ale spr?buj tak
 
Last edited by a moderator:
Status
Not open for further replies.
Top