Premium Account system [7.6]

Status
Zamknięty.

Ajaks

Active User
Zarejestrowany
Dołączył
Sierpień 14, 2011
Posty
70
Liczba reakcji
1
Witam, nie wiem czy dobry dzia?, czy temat ju? istnieje. Ale znale?? go nie mog?. ;)

Tak wi?c, przejd?my do sedna sprawy.

Poszukuje kody c++ z Premium Account system, taki, kt?ry dzia?a na DNI.

I do tego potrzebuje jeszcze, taki skrypt na premium room. A dok?adniej chodzi o to, ?e osoba z premium mo?e wej?? w dany room.
 
Odp: Premium Account system [7.6]

premium na dni jest domy?lnie w silniku -.-
-- do you want to give premium account to all players? (yes/no)
freepremmy = "yes" yes= niesko?czony premium no = na dni :P
w config.lua
wystarczy se npc kt?ry m?wi:
/premmy i liczba daje dni premium bodaj?e ;) wi?c npc:


if msgcontains(msg, 'buy premium') then
selfSay('/premmy 5 ' .. creatureGetName(cid) .. ')
ale nie wi? czy dobrze :P
 
Odp: Premium Account system [7.6]

Tamto ogarn??em, co do premium roomu? To jak b?dzie? Bo potrzebuje takie co? ?e w dany pok?j mo?e wej?? z paccem.
 
Odp: Premium Account system [7.6]

function onUse(cid, item, frompos, item2, topos)
npos = {x=frompos.x, y=frompos.y, z=frompos.z}
if item.uid == 8512 or item.uid == 8513 then
npos.x = 160
npos.y = 54
npos.z = 7
doTeleportThing(cid,npos)
else
npos.z = npos.z + 0
doTeleportThing(cid,npos)
end

return 1
end

gdzie uid dajesz unique id drzwi :) a npos xyz chyba wiesz ;)
nie zapomnij doda? do actions :S
tutaj gotowiec:
http://www49.zippyshare.com/d/77853719/658506/premiumroom.lua my?le ,?e skana nie trzeba 0kb plik ;)

---Aktualizacja---

nie obchodzi mnie czy da?o si? kr?cej . i chyba mo?na zamkn?? temat :P
 
Ostatnia edycja:
Odp: Premium Account system [7.6]

Bo ja potrzebuj? na teleport. W kt?ry mo?e wej?? only Pacc.. A TP stoi w danym roomie.
 
Odp: Premium Account system [7.6]

jak chcesz ,?eby gdzie? mo?na byo si? dosta? tylko z premiumem to pomy?l k*rwa po co masz to:

Kod:
focus = 0
talk_start = 0
target = 0
following = false
attacking = false

function onThingMove(creature, thing, oldpos, oldstackpos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)
  	if focus == cid then
          selfSay('Good bye then.')
          focus = 0
          talk_start = 0
  	end
end


function onCreatureTurn(creature)

end


function msgcontains(txt, str)
  	return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end


function onCreatureSay(cid, type, msg)
  	msg = string.lower(msg)

  	if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
		if isPremium(cid) then
			selfSay('Hello ' .. creatureGetName(cid) .. '! I can take you to the The City (20gp) or Dragon Land (50gp). Where do you want to go?')
			focus = cid
			talk_start = os.clock()
		else
			selfSay('Sorry, only premium players can travel by boat.')
			focus = 0
			talk_start = 0
		end

  	elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
  		selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.')

  	elseif focus == cid then
		talk_start = os.clock()

		if msgcontains(msg, 'dragon land') then
			if pay(cid,50) then
				selfSay('Let\'s go!')
				selfSay('/send ' .. creatureGetName(cid) .. ', 122 119 7')
				focus = 0
				talk_start = 0
			else
				selfSay('Sorry, you don\'t have enough money.')
			end

		elseif msgcontains(msg, 'city') then
			if pay(cid,20) then
				selfSay('Let\'s go!')
				selfSay('/send ' .. creatureGetName(cid) .. ', 171 65 7')
				focus = 0
				talk_start = 0
			else
				selfSay('Sorry, you don\'t have enough money.')
			end

		elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
			selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
			focus = 0
			talk_start = 0
		end
	end
end


function onCreatureChangeOutfit(creature)

end


function onThink()
  	if (os.clock() - talk_start) > 30 then
  		if focus > 0 then
  			selfSay('Next Please...')
  		end
  			focus = 0
  	end
	if focus ~= 0 then
 		if getDistanceToCreature(focus) > 5 then
 			selfSay('Good bye then.')
 			focus = 0
 		end
 	end
end

---Aktualizacja---

z yurka boat.lua -.- idiotyzm 21 wieku i to w 7.6 tak noobskie robi? wgl requesty w z?ym dziale

---Aktualizacja---

lub te?
function onUse(cid, item, frompos, item2, topos)
npos = {x=frompos.x, y=frompos.y, z=frompos.z}
if item.uid == 8512 or item.uid == 8513 then
if isPremium(cid) then
npos.x = 160
npos.y = 54
npos.z = 7
doTeleportThing(cid,npos)
else
npos.z = npos.z + 0
doTeleportThing(cid,npos)
end
end
return 1
end
 
Odp: Premium Account system [7.6]

Mo?e wyt?umacze dok?adniej? Bo albo ja Ciebie nie rozumiem, albo Ty mnie. Aff...

Potrzebuje takie co? jak jest na Real Tibii dok?adniej na Rookardzie.

Czyli je?li "FACC" chce wej?? na "PACC" to go cofa spowrotem... Istnieje takie co? pod 7.6? Najlepiej w funkcji onWalk... Przeszuka?em ca?ego neta przez noc i nic nie mog? znale??.
 
Status
Zamknięty.
Back
Do góry