Jump to content
  • 0

Please help with this spawn script.


Question

Posted (edited)

This entire line works, except for the ID. I want the ID to be determined on the monster the player selected in the menu. (my pet ID and monster ID are the same.)

What I don't understand is, why getd(".@pet_name$[.@s]") is working (as in, the name shows up properly), but getd(".@pet_id[.@s]") is not working.

 

Can someone please tell me where I went wrong? Thank you very much.

 

monster "gon_test", 62, 86, getd(".@pet_name$[.@s]"), getd(".@pet_id[.@s]"), 1,strnpcinfo(0)+"::Dead",0,1;

Edited by Helena

4 answers to this question

Recommended Posts

Posted

.@pet_id is the unique ID of the pet

you can see that by generate through `pet` table

.@pet_class is the answer you are looking for

 

 

monster "gon_test", 62, 86, getd(".@pet_name$[.@s]"), getd(".@pet_class[.@s]"), 1,strnpcinfo(0)+"::OnDead",0,1;
  • Upvote 1
Posted

Thank you Annie pet_class worked! :)

I'm very close now.

 

Strange problem I noticed, it ignores my menu choice. It always only spawns the first monster in the list regardless of the monster/pet I picked in the menu.

Which is weird because in this dialogue it shows fine.

 

mes "[battle Arena]";
    mes "Pet: "+ .@pet_name$[.@s];
    mes "Level : "+ .@pet_level[.@s];

 

Example; I picked Drops (second option in the menu), Drops would show fine ^there, but it would spawn a Poring (first item in the list/menu)... :(

Posted (edited)

monster "gon_test", 62, 86, .@pet_name$[.@s], .@pet_class[.@s], 1,strnpcinfo(0)+"::OnDead",0,1;
haha lol I gave wrong answer just now

shouldn't need the getd stuffs

the other topic ... I want to write with mob controller system ...

it need source modification so ... might take some time ...

Edited by AnnieRuru
  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...