Jump to content

Is it possbile something like this?


Recommended Posts

  • Active Member

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

  • Active Member

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

Thank you very much for the fast reply i will try that

 

Metin2dev the best :D

Link to comment
Share on other sites

  • Active Member
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

  • Active Member

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

  • Active Member

There is a problem.. i finished all my quests but when players login into the game some of them got VIP without being VIP :| so the function is history X_X

Link to comment
Share on other sites

  • Active Member

With:

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

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

 

PACI helped me and that worked.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 113

      Ulthar SF V2 (TMP4 Base)

    2. 2

      Feeding game source to LLM

    3. 0

      Target Information System

    4. 2

      Feeding game source to LLM

    5. 2

      anti exp explanation pls

    6. 2

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

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