What's new

Skrypt na vip acces ! REP

Status
Not open for further replies.

dragon1155

Advanced User
Joined
Sep 22, 2009
Messages
297
Reaction score
1
Witam potrzebuje skryptu ktory dawal by EPIC profesje czyli te najlepsze...Po kliknieciu zeby sie aktywowalo. Za pomoc rep. (pisalem kiedys taki temat ale nie uzyskalem w nim pomocy wiec pisze jeszcze raz)
 

dragon1155

Advanced User
Joined
Sep 22, 2009
Messages
297
Reaction score
1
Odp: Skrypt na vip acces ! REP

nie dodaje epic profesji...


@edit: podstawowka - czytanie ze zrozumieniem. Napisalem ze te vip access ma dawac epic profesje (ktorych nie daje za nic !!!!!) a nie umozliwiac dostep do drzwi ktorych nie mam zamiaru tworzyc...
 
Last edited:

kokosik1221

Active User
Joined
Dec 22, 2009
Messages
148
Reaction score
5
Odp: Skrypt na vip acces ! REP

Nie do ko?ca zrozumia?em ale wydaje mi si? ?e chodzi ci o skrypt na item po kt?rego uzyciu zmienia nam si? profesja np. na Epic Druid

Je?li tak to masz:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerPromotionLevel(cid) == 1 then
doPlayerSetPromotionLevel(cid, 2)
doSendMagicEffect(toPosition, CONST_ME_MAGIC_RED)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Now you are "..getPlayerVocationName(cid)..".");
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"You need to be promoted in order to use this item.")
end
end

Nastpnie w actions.lua dodajesz:

<action uniqueid="UNIQUE DRZWI ABLO ID ITEMU" script="promodoor.lua"/>

Nie wiem czy b?dzie dzia?a?o i nie wiem dok?adnie o co ci chodzi
 
Last edited:

dragon1155

Advanced User
Joined
Sep 22, 2009
Messages
297
Reaction score
1
Odp: Skrypt na vip acces ! REP

chodzi o to zeby po kliknieciu dodawalo epic profesje..wlasnie np. epic elder druid ... itp

@edit: nie dziala...po uzyciu kasuje jakiekolwiek profesje gracza
 
Last edited:

ErMex

Egzekucja
Joined
Dec 1, 2010
Messages
574
Reaction score
181
Odp: Skrypt na vip acces ! REP

?le sprecyzowa?es temat. Ka?dy kto tu zagl?da mysli, ?e szukasz skryptu na VIP'a. Daje Ci tutaj link do skrypta, lecz w nim niema itemka, kt?ry trzeba nacisn?? aby dosta? epic profesje, po prostu jest npc u, kt?rego zakupisz promocje.
http://tibia.net.pl/propozycje/318024-poradnik-jak-zrobic-profesje-epic.html

Jesli chcia?es doda? cos takiego do Sms shopu to proponuje:
Dodaj tego npc na jakas bezludn? wysp? i zr?b TP do powrotu. Do sms shopu dodaj itemek, kt?ry mo?na u?y? tylko raz! A ten item w?asnie by teleportowa? na ow? wysp?.

Pozdrawiam,
ErMex
 

Oskar

Forum friend
Joined
Jan 24, 2009
Messages
2,256
Reaction score
331
Odp: Skrypt na vip acces ! REP

A nie lepiej zrobi? co? takiego?
PHP:
function onUse(cid, item, frompos, itemEx, topos)
if isInArray({5,6,7,8}, getPlayerVocation(cid)) then
	doPlayerSetVocation(cid, getPlayerVocation(cid) + 4)
end
return true
end
I skrypt gotowy.
 

dragon1155

Advanced User
Joined
Sep 22, 2009
Messages
297
Reaction score
1
Odp: Skrypt na vip acces ! REP

@up; nie dziala
@ErMex; nie wygodne bardzo to jest rozwiazanie..
 

Venn

Advanced User
Joined
May 10, 2009
Messages
174
Reaction score
5
Odp: Skrypt na vip acces ! REP

w actions/scripts dodaj medal.lua
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
        local i = getPlayerVocation(cid)
		if i == 5 then
			vocation = "Epic Sorcerer"
		elseif i == 6 then
			vocation = Epic Druid"
		elseif i == 7 then
			vocation = "Epic Paladin"
		elseif i == 8 then
			vocation = "Epic Knight"
		end	
	if getPlayerPromotionLevel(cid) == 1 then
		setPlayerPromotionLevel(cid, 2)
		doCreatureSay(cid, "You are now a "..vocation.."", TALKTYPE_ORANGE_1)
		doRemoveItem(item.uid, 1)
	else
		doPlayerSendCancel(cid,"You need to be promoted in order to use this item.")
	end
end
w actions.xml dodaj:
PHP:
<action itemid="11754" event="script" value="medal.lua"/>
w vocations.xml dodaj:
PHP:
<vocation id="9" name="Epic Sorcerer" description="an Epic Mage" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="15" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="1">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="10" name="Epic Druid" description="an Epic Druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="15" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="2">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="11" name="Epic Paladin" description="an Epic Hunter" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="15" gainmanaticks="3" gainmanaamount="20" manamultiplier="1.4" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="3">
<formula meleeDamage="1.0" distDamage="1.1" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
<vocation id="12" name="Epic Knight" description="an Epic Knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="15" gainmanaticks="4" gainmanaamount="20" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="4">
<formula meleeDamage="1.1" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
 
Last edited:

dragon1155

Advanced User
Joined
Sep 22, 2009
Messages
297
Reaction score
1
Odp: Skrypt na vip acces ! REP

@up: jest napisane ze nie moge tego uzyc itemu...
 

Oskar

Forum friend
Joined
Jan 24, 2009
Messages
2,256
Reaction score
331
Odp: Skrypt na vip acces ! REP

Oczywi?cie, ?e nie dzia?a. To jest szkielet skryptu, nie dzia?aj?cy skrypt.
Powiedz mi kim testujesz te skrypty? Normalnym graczem? Je?li tak to powiedz jak? profesj? on posiada.
 

dragon1155

Advanced User
Joined
Sep 22, 2009
Messages
297
Reaction score
1
Odp: Skrypt na vip acces ! REP

normalnym graczem i testuje elite knightem, elder drutem i zwyklym drutem
 

Oskar

Forum friend
Joined
Jan 24, 2009
Messages
2,256
Reaction score
331
Odp: Skrypt na vip acces ! REP

W vocations.xml przy profesjach masz fromvoc? Je?li dla EK, czyli numeru 8, masz fromvoc inne ni? 8 to zmie? na 8.
A skrypt po prostu sobie z edytuj na w?asne potrzeby.
 

dragon1155

Advanced User
Joined
Sep 22, 2009
Messages
297
Reaction score
1
Odp: Skrypt na vip acces ! REP

mam fromvoc 8 a skrypt i tak nie dziala
 

Xart Irok

Senior User
Joined
Sep 7, 2008
Messages
2,925
Reaction score
419
Age
32
Odp: Skrypt na vip acces ! REP

Kolego opisz mi to powoli i dobrze krok po kroku i si? zrobi.
 
Status
Not open for further replies.
Top