What's new

Simple Pokedex.

Status
Not open for further replies.

Idk

Senior User
Joined
Aug 5, 2009
Messages
546
Reaction score
68
Age
29
Chcia?bym przedstawi? prosty pokedex mojego autorstwa.
Opiera si? on na wy?wietlaniu danych z tabeli ; p

Skrypt:
PHP:
function onUse(cid, item, fromPos, itemEx, toPos)

local pokemon = itemEx.uid
local pokemons = 
{
{"Rabbit", "Name: Rabbit\nType: Normal\nLevel: 10", 2342}, 
{"Weepinbell", "Name: Weepinbell\nType: grass\nRequired level: 18\n\nEvolutions:\nBellsprout, requires level 3\nWeepinbell, requires level 18\nVictreebel, requires level 50\n\nDescription: A Pokemon that appears to be a plant. It captures unwary prey by dousing them with a toxic powder.\n\nMoves: \nRazor Leaf - m1 - level 18\nVine Whip - m2 - level 18\nAcid - m3 - level 18\nPoison Bomb - m4 - level 27\nSlash - m5 - level 18\nStun Spore - m6 - level 27\n\nAbility:\nCut\n", 3421}, 
{"Squirtle", "Name: Squirtle\nType: water\nRequired level: 20\n\nEvolutions:\nSquirtle, requires level 20\nWartortle, requires level 40\nBlastoise, requires level 85\n\nDescription: It shelters itself in its shell, then strikes back with spouts of water at every opportunity.\n\nMoves: \nHeadbutt - m1 - level 10\nBubbles - m2 - level 10\nWater Gun - m3 - level 15\nWaterball - m4 - level 12\nAqua Tail - m5 - level 13\nHydro Cannon - m6 - level 35\nHarden - m7 - level 20\n\nAbility:\nSurf\n",3444},
{"Bulbasaur", "Name: Bulbasaur\nType: grass\nRequired level: 20\n\nEvolutions:\nBulbasaur, requires level 20\n", 2342} 
} 
	for _,n in pairs(pokemons) do
	if isCreature(pokemon) == true then
	if getCreatureName(pokemon) == n[1] then
	doShowTextDialog(cid, n[3], n[2])
	end
	end
end
end

Screen:


Spos?b dodawania:
1. Doda? linijk? nad "Rabbit".
PHP:
- Imi? Poka ; Tekst, kt?ry ma by? wy?wietlany ; ID Portretu Pokemona ;
{"Charizard", "Name: Charizard\nType: fire\nLevel: 60", 2342},
 

LaVejt

Advanced User
Joined
Jan 26, 2010
Messages
362
Reaction score
7
Odp: Simple Pokedex.

a czy mozna cos takiego zrobic ale na zwyklej tibii ???
potrafisz takie cos zrobic ??
 

dominikms1

Senior User
Joined
Feb 6, 2010
Messages
696
Reaction score
66
Odp: Simple Pokedex.

Nie na ?adnej r??nicy mi?dzy poke a zwyk?ym serwerem.
Po prostu wpisz sobie np. Wolf, albo rat, ustaw sobie na jakies inne id przedmiotu
 

Szaki

Active User
Joined
Jul 25, 2010
Messages
104
Reaction score
7
Odp: Simple Pokedex.

S?abe. Dlaczego? Wszystkie dane zosta?y dok?adnie wypisane. Brak zmiennych. Skrypt jest BANALNY.

Wyci?ganie danych z tabeli by?oby o wiele lepsze...

Ocena: 7/10 (za pomys? z wykonaniem), 4/10 (za samo wykonanie..)

Pozdrawiam...
 

osa68

Active User
Joined
Jun 16, 2008
Messages
90
Reaction score
4
Odp: Simple Pokedex.

Sprzedam pokemon otsa na pets systemie tanio :)
 

Zielony Banan

Advanced User
Joined
Nov 11, 2010
Messages
253
Reaction score
7
Odp: Simple Pokedex.

Skrypt jest ukradziony.oto link do prawdziwego tematu.Kole? naucz si? sam robi? a nie kradniesz !!


Notka moderatorska:
Sp?jrz na daty temat?w.
 
Last edited by a moderator:

Idk

Senior User
Joined
Aug 5, 2009
Messages
546
Reaction score
68
Age
29
Odp: Simple Pokedex.

Jak ja go tam wstawi?em -.-
 
Status
Not open for further replies.
Top