Jump to content
Phishing - Beware of identity theft... ×
  • 0

Is it possbile something like this?


Exygo

Question

  • Bronze

Hi i'm trying to finish my VIP-TICKET system and i've already finished, the last thing what i need to do is to make a quest when login and pc.get_name() like [VIP] to give a letter? how can i do this? anyone has an idea ?

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0
  • Bronze
SYSERR: Dec 12 20:39:54 :: RunState: LUA_ERROR: [string "stash"]:2: attempt to call field `match' (a nil value)
SYSERR: Dec 12 20:39:54 :: GetQuestStateName: QUEST wrong quest state file stash.0
 
:mellow:
Link to comment
Share on other sites

  • 0
  • Bronze

use string.find then ...

string.find(pc.get_name(),"[VIP]")  ~=/!= ""

which should definitly work because of:

https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

 

 

That worked, again thank you so much!

 

The thread can be closed#

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 0
  • Developer

With:

when login with string.find(pc.get_name(), "%[VIP%]") begin

should work fine. 'Cause some functions don't read some special characters (like [] )

  • Love 1

when you return 0 and server doesn't boot:

unknown.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 1

      Phishing - Beware of identity theft...

    2. 1

      Phishing - Beware of identity theft...

    3. 45

      Official Pickup Slot Effect [REVERSED]

    4. 0

      damage from int to long long

    5. 22

      Green & Purple Potions Effect

    6. 12

      When Uninstalling Gaya System

    7. 12

      When Uninstalling Gaya System

    8. 12

      When Uninstalling Gaya System

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.