• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

5cc za 50 lvl jak ??

arczieku

New Member
Joined
Feb 17, 2010
Messages
57
Reaction score
0
Witam. Jak zrobić bonus dla chara za osoągnięcię 50 lvl zeby dostał 5cc ?? i za 100 lvl 100 punktów premium ??
 
zrób sobie skrypt w creaturescriptsach przy użyciu funckji onAdvance oki?
a jak nie umiesz to idź do wyszukiwarki, bo są takie skrypty na forum!
 
yhy. On chciał pomóc tylko ale jak kto woli...
Używaj funkcji Szukaj ponieważ już taki skrypt już widziałem, nawet miał o tyle ulepszenie że kto 1 na serwerze wbije 100lv to dostaje 100cc.
 
Zrobiłem sobie skrypt na punkty za 100 lvl ale wywala mi błąd przy uruchominieu może ktoś podopowie

Code:
local config =
{
storage = 1112,
points = 100
level = 100,
}
function onAdvance(cid, skill, oldLevel, newLevel)
local storage = getPlayerStorageValue(cid, config.storage)
	if (skill == SKILL__LEVEL and newLevel == config.level and storage == -1) then
		  doPlayerAddPremiumPoints(cid, config.points)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulation! You got 200 premium points")
		setPlayerStorageValue(cid, config.storage, 1)
    end
    return true
end

błąd mam tfs 0.3.5
Code:
[23/02/2010 17:19:16] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/200points.lua)
[23/02/2010 17:19:16] data/creaturescripts/scripts/200points.lua:5: '}' expected (to close '{' at line 2) near 'level'
 
local config =
{
storage = 1112,
points = 100,
level = 100
}

Źle miałeś przecinek ustawiony
 
Kolejny błąd ale w skrypcie od kasy... =/
Code:
[23/02/2010 17:48:02] Lua Script Error: [CreatureScript Interface] 
[23/02/2010 17:48:02] data/creaturescripts/scripts/10cc.lua:onAdvance

[23/02/2010 17:48:02] data/creaturescripts/scripts/10cc.lua:10: attempt to call global 'addPlayerItem' (a nil value)
[23/02/2010 17:48:02] stack traceback:
[23/02/2010 17:48:02] 	data/creaturescripts/scripts/10cc.lua:10: in function <data/creaturescripts/scripts/10cc.lua:7>

Wbiłem level i nie dostałęm kasy a wywaliło w konsoli to...
Code:
local config =
{
storage = 1111,
item = {2160,10},
level = 80,
}
function onAdvance(cid, skill, oldLevel, newLevel)
local storage = getPlayerStorageValue(cid, config.storage)
	if (skill == SKILL__LEVEL and newLevel == config.level and storage == -1) then
		addPlayerItem(cid, config.item[1], config.item[2])
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulation! You got 10 crystal coins")
		setPlayerStorageValue(cid, config.storage, 1)
    end
    return true
end
 
no to ja już nie wiem... zrobi ktoś z tym do PlayerAddItem ?? bo ja nie uzywałem tego nigdy
 
ojejq poczekaj zaraz jakis pro programista przyjdzie i ci to zrobi za reputa bo to jest zbyt skomplikowane ;/
 
zamiast ktoś wytłumaczyć to taki Specjalista robi offtopowe posty.. :P heh nie wiem nie robiłem tego nigdy z ta funkcja.
zamiast addPlayerItem(cid, config.item[1], config.item[2]) to co wstawiać?
 
Pomysl kurwa nie musisz nic wczesniej robic zeby ruszyc troche tym jebanym mozgiem i wykombinowac o co tutaj moze chodzic!!!!!
 
no ty dzieciaku nie fikaj ;] bo i tak cienki jestes... i nie bluzgaj bo masz poziom = 0 ;] a nawet funkcji ujemnej kozaku haha
 
Back
Top