-Skrypt 8.60 Rebirth

Status
Zamknięty.

fujinraizo

User
Zarejestrowany
Dołączył
Grudzień 30, 2010
Posty
41
Liczba reakcji
1
Siemka Wszystkim

Szukam Skryptu na Rebirth ale zeby by?a po przez komende talkactions oraz do tego onlook
przeszukalem otland ale maja bledy moze ma ktos poprawiony badz pomoze ktos w tworzeniu ??
za pomoc nagroda ++
 
Odp: 8.60 Rebirth

Wyt?umacz niewtajemniczonym co to jest "Rebirth" i na jakiej zasadzie ma dzia?a?...
 
Odp: 8.60 Rebirth

Wyt?umacz niewtajemniczonym co to jest "Rebirth" i na jakiej zasadzie ma dzia?a?...

omg !!


Rebirth / Reborn // Reset -- Jest to pojecie odrodzenia badz restartu postaci po wbiciu okreslonego lvl np : gdy postac osiaga 100 lvl lub wiekszy wpisuje komende !reset ( lub inna ) to postac automatycznie sie wyloguwuje i wraca do 8 lvl lub 10 itp... Mana i HP zostaje czym wiekszy reset tym postac jest silniejsza

oto przukladowy skrypt oraz onlook

Talkactions

Kod:
function onSay(cid, words, param)
config = {
level=300, -- level necessary to reset.
RemainingLvl=50, -- that level will be reset after.
exper=1847300, -- experience that will be reset after.
pid=getPlayerGUID(cid), 
skull="yes", -- players with white skull can reset? ("yes" or "no").
redskull="yes", -- players with red skull can reset? ("yes" or "no").
prot="yes", -- players need to be in protection zone to reset? ("yes" or "no").
bat="yes" --Players must be no fight to reset ("yes" or "no").
}

function getResets(cid)
reset = getPlayerStorageValue(cid,1020)
if reset < 0 then
reset = 0
end
return reset
end

if(config.skull == "no") and (getCreatureSkullType(cid) == 3) then
doPlayerSendTextMessage(cid,22,"only players without white skull can reset.")
return TRUE
end

if(config.redskull == "no") and (getCreatureSkullType(cid) == 4) then
doPlayerSendTextMessage(cid,22,"only player without red skull can reset.")
return TRUE
end

if(config.prot == "yes") and (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then
doPlayerSendTextMessage(cid,22,"Idz do Pz zeby dokonac Rebirth.")
return TRUE
end

if(config.bat == "yes") and (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then
doPlayerSendTextMessage(cid,22,"Postac uczestniczyla w bitwie.")
return TRUE
end

if getPlayerLevel(cid) >= config.level then
setPlayerStorageValue(cid,1020,getResets(cid))
doPlayerPopupFYI(cid,"you now was reset, you have "..getResets(cid).." reset\'s.")
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = "..config.RemainingLvl..", `experience` = "..config.exper.." WHERE `id` = "..config.pid)
else
doPlayerSendCancel(cid, "Potrzebujesz "..config.level.." lvl zeby zrobic reset.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end

return TRUE
end



a tera onlook Creaturescript

Kod:
local minlvl = 300
local newlvl = 50


	function onLook(cid, thing, position, lookDistance)
		if(isPlayer(thing.uid)) then
			if getPlayerResets(getCreatureName(thing.uid)) < 1 then
				doPlayerSendTextMessage(cid, 20, ""..getCreatureName(thing.uid).." doesnt have any reset.")
			else
				doPlayerSendTextMessage(cid, 20, ""..getCreatureName(thing.uid).." has "..getPlayerResets(getCreatureName(thing.uid)).." resets")
			end
		end
		return true
	end



wiec tak Reset mi robi dziala elegancko ale nie pokazuje mi ile postac ma reset?w !!
 
Odp: 8.60 Rebirth

Sk?d w creaturescripts silnik ma wiedzie? co zwraca funkcja getPlayerResets? Przecie? zadeklarowa?e? ja tylko w talkactions : )
 
Odp: 8.60 Rebirth

tak robi mi reborn ale nie pokazuje mi ile postac ma reborn?w wiec dodalem tez onlook i tera mi wyswietla ;)
ale cos jest nie tak bo z 1 reborna daje mi 2-3 ;/
zamiast 1,2,3,4,5 itp...
to skacze mi z 1 reborna na 5 reborn ;/
gdzie jest b?ad ??
 
Status
Zamknięty.
Back
Do góry