• logo_cipsoft
    Nowe serwery zostały otwarte 19 Lut 2025:
    Noctalia (Open PvP) Ignitera (Open PvP) us_logo Xybra (Open PvP)

[8.21](WAR)Pomocy!!

Status
Zamknięty.

Xane

Advanced User
Dołączył
Sierpień 23, 2008
Posty
208
Liczba reakcji
9
Mam takie problemy:
1.Jak zrobic zeby potiony sie nie konczyly tzn. np: masz 1 butelke uzyjesz nia i ona nie znika i dalej mozesz ja uzywac (HELP)
2.Mam 3 Anihilatory i na map editorze wstawilem juz all drzwi potwory, tylko niewiem jak zrobic skrypta zeby jak przyjdzie osoba mogla wziasc 1 rzecz ze skrzyni a nie 4 ;/ (HELP)
3. Wie ktos moze jak Zrobic Npc ktory sie pisze : (Hi>Trade) Pojawia sie tabela np: na rozynych ots to juz tak jest Plx pomozcie napiszcie mi tu :)
Prosze o nie Usuwanie tematu Plx...
z Gory Dzieki:*
 
Odp: [8.21](WAR)Pomocy!!

Mam takie problemy:
2.Mam 3 Anihilatory i na map editorze wstawilem juz all drzwi potwory, tylko niewiem jak zrobic skrypta zeby jak przyjdzie osoba mogla wziasc 1 rzecz ze skrzyni a nie 4 ;/ (HELP)

To mog? pom?c. Musisz w scrypcie ustawi? storage value takie same dla wszystkich skrzy?.

Pozdrawiam.
 
Odp: [8.21](WAR)Pomocy!!

Mam Pytanie Gdzie te [storage value]. Trzeba Wstawic gdzie to jest ??
bo na mapie byly 3 takie same anni... ale ja je przerobilem na 3 inne anihilatory i mam takie skrypty : (annichest),(annichest1),(annichest2),(annilever),(anniroom1),(anniroom2)... Pomozecie ??
 
Odp: [8.21](WAR)Pomocy!!

Odswiezam Pomozcie ....................
 
Odp: [8.21](WAR)Pomocy!!

To jest przyk?ad annihilatora, scrypt si? znajduje w data/actions/script
Kod:
function onUse(cid, item, frompos, item2, topos)

   if item.uid == 3001 then
   queststatus = getPlayerStorageValue(cid,5010)
   if queststatus == -1 then
   doPlayerSendTextMessage(cid,22,"You have found a Demon Armor.")
   doPlayerAddItem(cid,2494,1)
   setPlayerStorageValue(cid,5010,1)
   else
   doPlayerSendTextMessage(cid,22,"It is empty.")
   end
   elseif item.uid == 3002 then
   queststatus = getPlayerStorageValue(cid,5010)
   if queststatus == -1 then
   doPlayerSendTextMessage(cid,22,"You have found a Sword of Valor.")
   doPlayerAddItem(cid,2400,1)
   setPlayerStorageValue(cid,5010,1)
   else
   doPlayerSendTextMessage(cid,22,"It is empty.")
   end
   elseif item.uid == 3003 then
   queststatus = getPlayerStorageValue(cid,5010)
   if queststatus == -1 then
   doPlayerSendTextMessage(cid,22,"You have found a Stonecutter's Axe.")
   doPlayerAddItem(cid,2431,1)
   setPlayerStorageValue(cid,5010,1)
   else
   doPlayerSendTextMessage(cid,22,"It is empty.")
   end
   elseif item.uid == 3004 then
   queststatus = getPlayerStorageValue(cid,5010)
   if queststatus == -1 then
   doPlayerSendTextMessage(cid,22,"You have found an  Annihilation Bear.")
   doPlayerAddItem(cid,2326,1)
   setPlayerStorageValue(cid,5010,1)
   else
   doPlayerSendTextMessage(cid,22,"It is empty.")
   end
else
return 0
   end

   return 1
end

Skrzynia zaczyna si? od:
[pierwsza] if item.uid
[druga] elseif item.uid
[trzecia] elseif item.uid
[czwarta] elseif item.uid

Ka?da skrzynia w swoim scryptcie ma warto??, czyli jak raz ju? zabierzemy nagrod? to drugi raz nie mo?na. Ta sama warto?? przypisana 4 skrzyniom daj? to, ?e mo?emy wybra? jedna z nich. Storage value jest cyfr?:
Kod:
setPlayerStorageValue(cid,[color=green][b]5010[/b][/color],1)

Mam nadziej?, ?e zrozumia?e?.

Pozdrawiam.
 
No tak tylko ze jest problem co to i gdzie to jest w jakim pliku napisalem wyzej chyba nie ?? .................
 
Odp: [8.21](WAR)Pomocy!!

OK zaraz zobacze wielkie dzieki :)
 
Dzieki Juz prawie wszystko wiem tylko powiedzicie mi bo ja mam 3 anihilatory to jak to wstawin na 3 ?? i gdzie wstawic jakie eq ma skrzynia dawac??
Bo ja na map Editorze wstawilem do skrzyni Uniqe Id mysle ze zle :D
i jeszcze ten problem z anni: co to znaczy ?
if item.uid == 3001 then (3001) ???
 
Odp: [8.21](WAR)Pomocy!!

Dzieki Juz prawie wszystko wiem tylko powiedzicie mi bo ja mam 3 anihilatory to jak to wstawin na 3 ?? i gdzie wstawic jakie eq ma skrzynia dawac??
Bo ja na map Editorze wstawilem do skrzyni Uniqe Id mysle ze zle :D
i jeszcze ten problem z anni: co to znaczy ?
if item.uid == 3001 then (3001) ???

To znaczy "je?eli item o unique id jest 3001 wtedy" i w tym wypadku je?li tak jest, uruchamia si? scrypt czyli to co poni?ej.

Pozdrawiam.
 
Dzieki... Musze wiedziec jeszcze gdzie wstawic zeby inne itemy dawalo bo ja zmienilem itemy te z anni na inne to znaczy chcem zmienic :)
A i jeszcze jak powyzej napisalem : Niewiem w ktorym pliku to wstawic bo mam pare ;/.
i mam wogle to cos innego
if item.uid == 5006 then
 
To trzeba wstawic w annichest ja mam az 3 tych Anni chest ;/
 
Mam takie cos... To jest 1

PHP:
-- annihilator chests

function onUse(cid, item, frompos, item2, topos)
hometown =  {x=1076, y=487, z=7} 

   	if item.uid == 5006 then
   		queststatus = getPlayerStorageValue(cid,5010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have became 15 Milion exp.")
			doPlayerAddExp(cid,15000000)
   			setPlayerStorageValue(cid,5010,1)
			doTeleportThing(cid,hometown) 
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
			doTeleportThing(cid,hometown) 
   		end
   	elseif item.uid == 5007 then
   		queststatus = getPlayerStorageValue(cid,5010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a pair of Speedy Boots.")
   			doPlayerAddItem(cid,5462,1)
   			setPlayerStorageValue(cid,5010,1)
			doTeleportThing(cid,hometown) 
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
			doTeleportThing(cid,hometown) 
   		end
   	elseif item.uid == 5008 then
   		queststatus = getPlayerStorageValue(cid,5010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Magician Hat. Your Spells will be Stronger now!")
   			doPlayerAddItem(cid,2662,1)
   			setPlayerStorageValue(cid,5010,1)
			doTeleportThing(cid,hometown) 
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
			doTeleportThing(cid,hometown) 
   		end
   	elseif item.uid == 5009 then
   		queststatus = getPlayerStorageValue(cid,5010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a old Dragon Scale Mail. This will reduce the Spell and Melee damage which you get.")
   			doPlayerAddItem(cid,2505,1)
   			setPlayerStorageValue(cid,5010,1)
			doTeleportThing(cid,hometown) 
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
			doTeleportThing(cid,hometown) 
   		end
	else
		return 0
   	end

   	return 1
end
 
To 2 CHest

PHP:
-- annihilator chests

function onUse(cid, item, frompos, item2, topos)
hometown =  {x=1076, y=478, z=7} 

   	if item.uid == 6006 then
   		queststatus = getPlayerStorageValue(cid,6010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have became 15 Milion exp.")
			doPlayerAddExp(cid,15000000)
   			setPlayerStorageValue(cid,6010,1)
			doTeleportThing(cid,hometown) 
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
			doTeleportThing(cid,hometown) 
   		end
   	elseif item.uid == 6007 then
   		queststatus = getPlayerStorageValue(cid,6010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a pair of Speedy Boots.")
   			doPlayerAddItem(cid,5462,1)
   			setPlayerStorageValue(cid,6010,1)
			doTeleportThing(cid,hometown) 
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
			doTeleportThing(cid,hometown) 
   		end
   	elseif item.uid == 6008 then
   		queststatus = getPlayerStorageValue(cid,6010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Magician Hat. Your Spells will be Stronger now!")
   			doPlayerAddItem(cid,2662,1)
   			setPlayerStorageValue(cid,6010,1)
			doTeleportThing(cid,hometown) 
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
			doTeleportThing(cid,hometown) 
   		end
   	elseif item.uid == 6009 then
   		queststatus = getPlayerStorageValue(cid,6010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a old Dragon Scale Mail. This will reduce the Spell and Melee damage which you get.")
   			doPlayerAddItem(cid,2505,1)
   			setPlayerStorageValue(cid,6010,1)
			doTeleportThing(cid,hometown) 
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
			doTeleportThing(cid,hometown) 
   		end
	else
		return 0
   	end

   	return 1
end
 
A to 3 Chest... (i niewiem)
A pozniej jeszcze Annilever, Anniroom Itd....

PHP:
-- annihilator chests

function onUse(cid, item, frompos, item2, topos)
hometown =  {x=1076, y=468, z=7} 

   	if item.uid == 7006 then
   		queststatus = getPlayerStorageValue(cid,7010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have became 15 Milion exp.")
			doPlayerAddExp(cid,15000000)
   			setPlayerStorageValue(cid,7010,1)
			doTeleportThing(cid,hometown) 
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
			doTeleportThing(cid,hometown) 
   		end
   	elseif item.uid == 7007 then
   		queststatus = getPlayerStorageValue(cid,7010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a pair of Speedy Boots.")
   			doPlayerAddItem(cid,5462,1)
   			setPlayerStorageValue(cid,7010,1)
			doTeleportThing(cid,hometown) 
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
			doTeleportThing(cid,hometown) 
   		end
   	elseif item.uid == 7008 then
   		queststatus = getPlayerStorageValue(cid,7010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Magician Hat. Your Spells will be Stronger now!")
   			doPlayerAddItem(cid,2662,1)
   			setPlayerStorageValue(cid,7010,1)
			doTeleportThing(cid,hometown) 
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
			doTeleportThing(cid,hometown) 
   		end
   	elseif item.uid == 7009 then
   		queststatus = getPlayerStorageValue(cid,7010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a old Dragon Scale Mail. This will reduce the Spell and Melee damage which you get.")
   			doPlayerAddItem(cid,2505,1)
   			setPlayerStorageValue(cid,7010,1)
			doTeleportThing(cid,hometown) 
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
			doTeleportThing(cid,hometown) 
   		end
	else
		return 0
   	end

   	return 1
end
 
Odp: [8.21](WAR)Pomocy!!

Na przysz?o?? u?ywaj opcji edytuj.
Masz takie co? (if item.uid == 5006 then) bo Twoja skrzynia od annhilatora ma takie unique id, jest to tylko warto?? skrzyni do rozpoznania przez scrypt.
Je?li chcesz ?eby quest dawa? inny item, to zmieniasz id itemu w tej linijce:
Kod:
doPlayerAddItem(cid,[color=green][b]5462[/color][/b],1)

Pozdrawiam.
 
Teraz potrzebuje pomocy w Pytaniu 1. i 3.
:) Jest na 1 Stronie na poczatku
 
Odswiezam Potrzebuje jeszcze 2 Skryptow czekam na szybka odpowiedz :)
 
Status
Zamknięty.
Do góry