Jump to content
  • 0

how to check the players bring homunculus


Question

Posted (edited)

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

3 answers to this question

Recommended Posts

  • 0
Posted

*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.

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...