Jump to content

como agregar un if para npc hom renacidos


aepa1940

Recommended Posts


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  50
  • Reputation:   0
  • Joined:  07/09/12
  • Last Seen:  

junto con saludarle quisiera saber lo siguiente ise un npc q evoluciona los homuculos pero si va uno q ya esta renacido lo deja utilizar sin problema y quita los item como puedo poner un if q reconosca q el hom esta renacido y no le deje continuar hablando con el npc

if(hom < ?) goto L_renac;

L_renac:

mes @name$;

mes "Lo siento tu homuculus ya esta renacido.";

close;

lo q esta en rojo es lo q no se q ponerle

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  375
  • Reputation:   88
  • Joined:  12/30/11
  • Last Seen:  

if(gethominfo(0) >= 6009) goto L_renac;

L_renac:

mes @name$;

mes "Lo siento tu homuculus ya esta renacido.";

close;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

@up

gethominfo(1)

=P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  375
  • Reputation:   88
  • Joined:  12/30/11
  • Last Seen:  

@EvilPunker, when you use ''@makehomun <homun IDs>'' you have to put the homun ID, from 6001 to 6016 are the homun IDs.

you can not use the number ''1'' because it is for homun class.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  50
  • Reputation:   0
  • Joined:  07/09/12
  • Last Seen:  

lo q ice fue

if(gethominfo(1) < 6001 || gethominfo(1) > 6008 ) goto L_renac;

L_renac:

mes @name$;

mes "Lo siento tu homuculus ya esta renacido.";

close;

y me funco de maravilla

no me deja segir hablamdo cuando es renacido y si me deja cuando no lo es

mucgas gracias

Edited by aepa1940
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

@EvilPunker, when you use ''@makehomun <homun IDs>'' you have to put the homun ID, from 6001 to 6016 are the homun IDs.

you can not use the number ''1'' because it is for homun class.

but that is what he wanted to do ^^ see his code xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  375
  • Reputation:   88
  • Joined:  12/30/11
  • Last Seen:  

@EvilPunker, when you use ''@makehomun <homun IDs>'' you have to put the homun ID, from 6001 to 6016 are the homun IDs.

you can not use the number ''1'' because it is for homun class.

but that is what he wanted to do ^^ see his code xD

nevermind, he got it xD

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
Reply to this topic...

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