Jump to content

Recommended Posts

  • Premium
So this is the letter part .
 
if pc . get_name ( ) == "[%]" then  send_letter ( "Anunta ca esti online" )
 return end 

But it don't send the letter ,,Anunta ca esti online '' , someone know how to make it get the all name with rank [MOD] or [%] all ?

Link to comment
https://metin2.dev/topic/6176-quest-automatic-get-name-from-rank/
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

string.find does not return bool! :)

It returns the position where it found the pattern. Also it returns nil if the pattern is not found within the string.

 

Try it with that:

 

if string.find(pc.get_name(), "[%s]") != nil then

 

This should do the trick :)

 

The ""..pc.get_name().."" has no use. You're just concatenating an empty string with the player name and then an empty string again. The result is the same as you'd get it when you just use pc.get_name() :)

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.