Jump to content
  • 0

instance_id no longer working? (SOLVED)


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 1
Posted
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.. ^_^

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