• logo_cipsoft
    Nowe serwery zostały otwarte 27 Paź 2025:
    Idyllia (Optional PvP) Hostera (Open PvP) us_logo Dracobra (Open PvP)

Skrypt KTo zrobi ?:>

Status
Zamknięty.

bialy509

Advanced User
Witam Potrzebuje skryptu kt?ry po wpisaniu !buylvl lub !buglvl ...
Daje 1x lvl .. za 300 g (cc) Najlepiej gdyby to bylo z exhaused 30s-1min ..

Daje ni?ej skrypt na takow? d?wigni? mo?e to pomo?esz ;]

Kod:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local oplata = 150000
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 15 gold.")
		end 
	end

Prosz? o pomoc !!
 

Our partners and their custom servers:

Odp: Skrypt KTo zrobi ?:>

Nie testowa?em, bo pisa?em na szybko, ale powinno dzia?a?.

\data\talkactions\scripts\buylvl.lua
Kod:
local config = {
	storage_key = 1000, -- to change
	exh_time = 30 * 1000, -- 30*1000 = 30 secound
	exh_text = "You are exh.",
	cost = 150000, -- cost add level
	count_level = 1, -- count add level
	must_level = 500 -- must level
}

function onSay(cid, words, param, channel)
	if(getCreatureStorage(cid, config.storage_key) > os.time) then
		doPlayerSendCancel(cid, config.exh_text)
		return TRUE
	end
	if(getPlayerLevel(cid) >= config.must_level) then
		doPlayerSendTextMessage(cid,22,"You don't have "..config.must_level.." lvl.")
		return TRUE
	end
	
	if(doPlayerRemoveMoney(cid, config.cost) == FALSE) then
		doPlayerSendTextMessage(cid,22,"You don't have "..config.cost.." gold.")
		return TRUE
	end
		
	doPlayerAddLevel(cid, config.count_level, TRUE)
	doPlayerSendTextMessage(cid,22,"Added exp pls don't spam ! ;]")
	doCreatureSetStorage(cid, config.storage_key, config.exh_time+os.time)

return TRUE
end
talkactions.xml
Kod:
<talkaction words="!buylvl" event="script" value="buylvl.lua"/>

W razie problem?w, pisz.

Pozdrawiam,
Animax.
 
Odp: Skrypt KTo zrobi ?:>

Ehh ;/ Wpisuje !buylvl i nic si? nie dzieje ... Ani nie daje lvl ani nie bierze kasy .. i 0 komunikatu !

P.S Wodbo to tibia 8.00
 
Odp: Skrypt KTo zrobi ?:>

a wiec :D

-- !buylvl by Ruby Shark--

function onSay(cid, words, param)

if doPlayerRemoveMoney(cid, 3000000) == TRUE then

doPlayerAddLevel(cid, 1)

doPlayerSendTextMessage(cid, 19,"Odblokowales Lvl.")
doSendMagicEffect(getPlayerPosition(cid), 19)
else
doPlayerSendCancel(cid, "Sorry, Nie masz tyle kasy. Odblokowanie kosztuje 300g.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end
jak cos mow jakie bledy ;]
 
Odp: Skrypt KTo zrobi ?:>

To samo co wy?ej ;/ Nic si? nie dzieje .. !!! Prosz? O dalsz? pomoc .


P.S Da sie spakowa? klienta czym? innym ni? moleboxem ?? Lub moleboxem jako? aby nie by?o ?atwo wypakowa? ?
 
Odp: Skrypt KTo zrobi ?:>

function onSay(cid, words, param)
local oplata = 150000
if doPlayerRemoveMoney(cid, oplata) == TRUE then
if getPlayerLevel(cid) >= 500 then
doPlayerAddLevel(cid, 1)
doPlayerSendTextMessage(cid,22,"Added exp pls don't spam ! ;]")
end
else
doPlayerSendTextMessage(cid,22,"You don't have 500 lvl or 15 gold.")
end
end
To musi dzialac -.-
Jak nie dziala to gz silnik u mnie dziala ...
 
Odp: Skrypt KTo zrobi ?:>

Raczej tak .. To pytanie do Crasha lub Jacolosa ..

Ale wiem ,?e taki skrypt jest realny na ten silnik ;]
 
Odp: Skrypt KTo zrobi ?:>

function onSay(cid, words, param)
local oplata = 3000000
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 300 gold.")
end
end
Zobacz tak jak nie bedzie dzialac to ja nie wiem ^^
 
Odp: Skrypt KTo zrobi ?:>

zn?w ... Dobra tera dok?adnie .. !
Mam pliki tak jak napisa? ,,AnimaXxX,,
Wchodz? do gry wpisuje !buylvl ... I nic si? nie dzieje .Nic dos?ownie nic !
 
Odp: Skrypt KTo zrobi ?:>

Je?eli dobrze pami?tam pod 8.0 komendy z "!" , "/" dodawane w talkactions nie dzia?aj?, wi?c:
PHP:
<talkaction words="buglvl" script="buglvl.lua"/>
or:
PHP:
<talkaction words="`buglvl" script="buglvl.lua"/>
or
PHP:
<talkaction words="-buglvl" script="buglvl.lua"/>
Itd...
Powinno p?j??.

//Kurwa..
To nie TFS , tylko Devland.
U?yj
PHP:
<talkaction words="buglvl" script="buglvl.lua"/>
Poza tym pewnie Ci jebie w consoli b??d, ?e silnik nie wie co to "event", a Ty to olewasz-.-
 
Ostatnia edycja:
Odp: Skrypt KTo zrobi ?:>

Zrobi?em to w taki spos?b ..
Kod:
<talkaction words="buylvl" event="script" value="buylvl.lua"/>


i ... Nic sie nie dzieje .. ;/ Wpisuje buylvl .. I jak kazdy inny wyraz ;./ nic nei daje !
 
Odp: Skrypt KTo zrobi ?:>

Jest dzwignia ... Ale chodzi o to .. ,?e np crash wyjebalo kogos np gdzies na respie ssj5 goku i otoczly go .. i dostanie roka .. a tak to wpisujesz taka komende i git ..
 
Odp: Skrypt KTo zrobi ?:>

PHP:
menu = {
placa = 145000,
lewel = 500
}
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, menu.placa) == TRUE then
if (getPlayerLevel(cid) >= menu.lewel )then
doPlayerAddLevel(cid, 1)
doPlayerSendTextMessage(cid,22,"Added exp pls don't spam ! ;]")
end 
else 
doPlayerSendTextMessage(cid,22,"You don't have 500 lvl or 15 gold.")
end 
end

nie testowane ;]
 
Odp: Skrypt KTo zrobi ?:>

ok all .. opisze !! ..
Kod:
data\talkactions\scripts
zrobilem plik buylvl.lua .. Wklei?em tam skrypt .. potem
Kod:
data\talkactions
Otwieram Talkactions i dodaje linijke ..
Kod:
<talkaction words="buylvl" event="script" value="buylvl.lua"/>
w? server .. Wchodze do gry pisze buylvl .. i nic ..
55ghhj.jpg
 
Status
Zamknięty.
Back
Do góry Bottom