Jump to content
  • 0

Please help with this spawn script.


Helena

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  08/10/13
  • Last Seen:  

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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

.@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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  08/10/13
  • Last Seen:  

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)... :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  08/10/13
  • Last Seen:  

Thank you so much Annie, thanks to you I got the script working now! :)

 

- Solved -

Link to comment
Share on other sites

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.

×
×
  • Create New...