Jump to content
  • 0

how to check the players bring homunculus


Akbare

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  491
  • Reputation:   19
  • Joined:  11/19/11
  • Last Seen:  

I want to create a custom script for the Alchemist class, but without a homunculus to enter the room, how to know??

//====Masuk
prontera,164,174,3 script Creation NPC 81,{
if (zeny < 1000000) goto N_Zeny;
if ( gethominfo(0) != 0 )goto N_homun;
warp "ordeal_2-1",149,150;

N_Zeny:
mes "[Creation NPC]";
mes "Maaf Zeny kamu tidak cukup untuk memasuki ruangan ini";
close;
N_homun:
mes "[Creation NPC]";
mes "Maaf kamu tidak boleh membawa homunculus";
close;
}
//====Keluar
ordeal_2-1,150,158,3 script Creation#exitctr 81,{
warp "prontera",155,180;
close;
OnInit:
waitingroom "Exit",0;
end;
}

Ok works

thanks for advance

Edited by Akbare
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

*gethominfo(<type>)

This function works as a direct counterpart of 'getpetinfo':
0 - Homunculus unique ID
1 - Homunculus Class
2 - Name
3 - Friendly level (intimacy score). 100000 is full loyalty.
4 - Hungry level. 100 is completely full.
5 - Rename flag. 0 means this homunculus has not been named yet.
6 - Homunculus level

if ( gethominfo(0) != 0 )

^^ My best guess.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try this

if( gethominfo(0) ) goto N_homun;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  491
  • Reputation:   19
  • Joined:  11/19/11
  • Last Seen:  

@Emistry

@Arcenciel

thanks for the directions

I try /heh

ok works thanks /$

Edited by Akbare
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...