What's new

Czemu ten skrypt nie dziala ? !

Status
Not open for further replies.

bialy509

Advanced User
Joined
May 24, 2009
Messages
242
Reaction score
7
Kto mi naprawi ten skrypt ? W skrypcie chodzi tot ,ze ma dawa? 1x lvl porostu ubuglvl na wodbo ( tzw) d?wignia ! nie jest to taka zwyk?a d?wignia jest to d?wignia kt?ra mo?na urzy? dopiero po 1 min !! czemu ? aby nie expili ! ale nie daje 1 lvl tylko zabiera 15 g i to wszystko bez ?adnego komunikatu ;/


oto skrypt :

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition) 
local oplata = 150000 
local wait = 60 
    if doPlayerRemoveMoney(cid, oplata) then 
        if exhaustion.get(cid, 63521) == false then 
            if getPlayerLevel(cid) >= 500 then 
                addLevel(cid,1) 
                doPlayerSendTextMessage(cid,22,"Added exp pls don't spam ! ;]") 
                exhaustion.set(cid, 63521, wait) 
            else 
                doPlayerSendTextMessage(cid,22,"You don't have 500 lvl.") 
            end 
        else 
            doPlayerSendTextMessage(cid,22,"You can use this only one times on minute.") 
        end 
    else 
        doPlayerSendTextMessage(cid,22,"You don't have "..oplata.." golds.") 
    end  
return true 
end


Dodam jeszcze mo?e co? nie tak jest !
Code:
<action uniqueid="6669" script="bbug lvl.lua" />


To server wodbo !
 

Szaki

Active User
Joined
Jul 25, 2010
Messages
104
Reaction score
7
Odp: Czemu ten skrypt nie dziala ? !

Swoj? drog?, ?e WODBO swoj?, ?e nie znam funkcji "addLevel", wi?c spr?buj z tym skryptem:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local oplata = 150000
local wait = 60
if doPlayerRemoveMoney(cid, oplata) then
if exhaustion.get(cid, 63521) == false then
if getPlayerLevel(cid) >= 500 then
doPlayerAddExperience(cid, -getPlayerExperience(cid))
doPlayerSendTextMessage(cid,22,"Added exp pls don't spam ! ;]")
exhaustion.set(cid, 63521, wait)
else
doPlayerSendTextMessage(cid,22,"You don't have 500 lvl.")
end
else
doPlayerSendTextMessage(cid,22,"You can use this only one times on minute.")
end
else
doPlayerSendTextMessage(cid,22,"You don't have "..oplata.." golds.")
end
return true
end

W efekcie powinien zosta? bez expa. :D

Pozdrawiam.
 

bialy509

Advanced User
Joined
May 24, 2009
Messages
242
Reaction score
7
Odp: Czemu ten skrypt nie dziala ? !

To samo co w tamtym ,?e zabiera 15 g ale nie daje lvl ;/
Pomocy
 

Idk

Senior User
Joined
Aug 5, 2009
Messages
546
Reaction score
68
Age
29
Odp: Czemu ten skrypt nie dziala ? !

W starszych otsach 8.x nie ma funkcji exhaustion.get i exhaustion.set. Poza tym w 8.x nie ma
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
tylko:
PHP:
function onUse(cid, item, frompos, item2, topos)
Skrypt powinien wygl?da? tak:
PHP:
function onUse(cid, item, frompos, item2, topos)
local oplata = 150000 
local wait = 60 
local storage = 23262
    if doPlayerRemoveMoney(cid, oplata) then 
        if(getPlayerStorageValue(cid,storage) <= os.time()) then 
            if getPlayerLevel(cid) >= 500 then 
                addLevel(cid,1) 
                doPlayerSendTextMessage(cid,22,"Added exp pls don't spam !") 
                setPlayerStorageValue(cid,storage,os.time()+wait)
            else 
                doPlayerSendTextMessage(cid,22,"You don't have 500 lvl.") 
            end 
        else 
            doPlayerSendTextMessage(cid,22,"You can use this only one times on minute.") 
        end 
    else 
        doPlayerSendTextMessage(cid,22,"You don't have "..oplata.." golds.") 
    end  
return true 
end
Powinien dzia?a?.
 

bialy509

Advanced User
Joined
May 24, 2009
Messages
242
Reaction score
7
Odp: Czemu ten skrypt nie dziala ? !

No nie stety nie dzia?a ;/ Bierze 15 g nie daje lvl ;/


Pomocy

P.S Ma kto? mo?e dat editor po 8.00 ?(wodbo)
 

dominikms1

Senior User
Joined
Feb 6, 2010
Messages
696
Reaction score
66
Odp: Czemu ten skrypt nie dziala ? !

addLevel(cid,1)
Podmie? na
doPlayerAddLevel(cid,1)
 

krupnik003

New User
Joined
Oct 16, 2010
Messages
7
Reaction score
0
Odp: Czemu ten skrypt nie dziala ? !

Kto mi naprawi ten skrypt ? W skrypcie chodzi tot ,ze ma dawa? 1x lvl porostu ubuglvl na wodbo ( tzw) d?wignia ! nie jest to taka zwyk?a d?wignia jest to d?wignia kt?ra mo?na urzy? dopiero po 1 min !! czemu ? aby nie expili ! ale nie daje 1 lvl tylko zabiera 15 g i to wszystko bez ?adnego komunikatu ;/
oto skrypt :
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition) 
local oplata = 150000 
local wait = 60 
    if doPlayerRemoveMoney(cid, oplata) then 
        if exhaustion.get(cid, 63521) == false then 
            if getPlayerLevel(cid) >= 500 then 
                addLevel(cid,1) 
                doPlayerSendTextMessage(cid,22,"Added exp pls don't spam ! ;]") 
                exhaustion.set(cid, 63521, wait) 
            else 
                doPlayerSendTextMessage(cid,22,"You don't have 500 lvl.") 
            end 
        else 
            doPlayerSendTextMessage(cid,22,"You can use this only one times on minute.") 
        end 
    else 
        doPlayerSendTextMessage(cid,22,"You don't have "..oplata.." golds.") 
    end  
return true 
end
Dodam jeszcze mo?e co? nie tak jest !
Code:
<action uniqueid="6669" script="bbug lvl.lua" />
To server wodbo !

to.: <action uniqueid="6669" script="bbug lvl.lua" />


ma by? tak.:


<action uniqueid="6669" script="bbug_lvl.lua" />

tak samo plik zmie? na .: bbug_lvl.lua

i powino pali?
 

bialy509

Advanced User
Joined
May 24, 2009
Messages
242
Reaction score
7
Odp: Czemu ten skrypt nie dziala ? !

To Samo !!! Nie daj lvl bierze kase ;;//


P.S Ma ktos dat editor ? pod 8.00 (wodbo)
 

Aaviq

Active User
Joined
Sep 16, 2010
Messages
136
Reaction score
10
Odp: Czemu ten skrypt nie dziala ? !

No nie stety nie dzia?a ;/ Bierze 15 g nie daje lvl ;/
Pomocy
P.S Ma kto? mo?e dat editor po 8.00 ?(wodbo)
Tutaj masz odrazu item, spr i dat editor.


Regards,
Aaviq
 

bialy509

Advanced User
Joined
May 24, 2009
Messages
242
Reaction score
7
Odp: Czemu ten skrypt nie dziala ? !

A has?o do paczki ?? !!!!!

A skrypt nadal nie dzia?a ! ;/
 
Status
Not open for further replies.
Top