View Single Post
  #54  
Unread March 2nd, 2007, 09:40 AM
Irish Witch's Avatar
Irish Witch
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 32
Gender:
Nature: Lonely
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
Now Possible to NAME new pokemon after using GivePokemon!

*shameless plug*

The latest version of the pkmadv database now has a command 'NamePokemon'
Use something like this:
Code:
#org 0x800000
lock
faceplayer
checkflag 0x200
if 0x1 goto $GotMew
message $WantMew
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto $GiveMew
message $NoMew
boxset 0x6
release
end

#org $GotMew
message $HowMew
boxset 0x6
release
end

#org $GiveMew
countpokemon
compare LASTRESULT 0x6
if 0x1 goto $ErrorMew
message $RecieveMew
boxset 0x6
givepokemon 151 5 0
message $NewName
callstd 0x5
compare LASTRESULT 0x1
if 0x1 gosub $NameMew
setflag 0x200
release
end


#org $ErrorMew
message $FullParty
boxset 6
release
end

#org $NameMew
namepokemon
return

$FullParty 1 = Your Party is full!
$NewName 1= Would you like to give the pokemon a name?
$WantMew 1 = Would you like my Mew?\nI dont want it anymore.
$NoMew 1 = You're Weird!
$HowMew 1 = So how is MY Mew?
$RecieveMew 1 = You recieved a mew
- EDIT - 2320 gmt+8

Now added 'Countpokemon' to command database. Code above adjusted apropriately!
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto

Last edited by Irish Witch; March 2nd, 2007 at 02:23 PM.