Jump to content
  • 0

instance_id no longer working? (SOLVED)


rakuzas

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

Hi,

I want to confirm something.. Does instance_id no longer working? Because I read in rathena doc, it shows instance_id..

*instance_id()

Returns the unique instance id of the attached script. If the script is not
attached to an instance, the instance of the currently attached player is
used (if it is a character, party, or guild mode). If it is not owned by anyone, no
player needs to be attached. If that fails, the function will return 0.

But when I using custom instance script, i got error

parse callfunc : expected ')' 

on every instance_id(1) or instance_id(0)..

So, if this not working? Have any suggestion? Or need to try rewrite the script to support latest instance system as in below?

But after googling around.. I found this sample : https://github.com/rathena/rathena/blob/master/doc/sample/instancing.txt and instance_id () only.. Hmm.. So, maybe the conclusion is need to rewrite the script? To make it support latest rAthena?

Thank you.. ^_^

Edited by rakuzas
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

The parenthesis doesn't contain anything because it returns a value - instance_id() is how it's expressed in the docs because that's how it's used. Leave out the values you added to the command and it'll work.

Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

Just now, Akkarin said:

The parenthesis doesn't contain anything because it returns a value - instance_id() is how it's expressed in the docs because that's how it's used. Leave out the values you added to the command and it'll work.

Ahhh.. I just notice it in sample doc.. Thanks.. I will try it now.. ^_^

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