Wise Posted December 6, 2012 Posted December 6, 2012 (edited) rachel,172,93,4 script Test 85,{ set testID,getcharid(0); mes strcharinfo(0)+" is my name"; mes getcharid(0)+" is my ID"; mes $testID+" is the target ID"; mes "Getting target's name..."; set myNam$,rid2name(testID); mes myNam$; close; } edit: it returns null =\ Edited December 6, 2012 by Mavis Quote
EvilPuncker Posted December 6, 2012 Posted December 6, 2012 (edited) maybe this? query_sql("SELECT `name` from `char` WHERE `char_id` = "+$testID+"",.@names$); mes "the name is "+.@names$; written on the fly, may not work lol Edited December 6, 2012 by EvilPuncker Quote
Dastgir Posted December 6, 2012 Posted December 6, 2012 (edited) Alternate Way. rid2name($testID) But Target should be online. Kinda Late. Use EvilPuncker Way query_sql("SELECT `name` from `char` WHERE `char_id` = "+$testID+"",@names$); mes "the name is "+@names$; @EvilPuncker Edited December 6, 2012 by Dastgir Pojee Quote
Wise Posted December 6, 2012 Author Posted December 6, 2012 thanks but i just solved it again by using RID instead of GID xD but just kinda confused with RID and GID though.. isnt RID the account ID and GID is the game ID? then for RID, why cant i use set @RID,getcharid(0) instead of getcharid(3) because 150003 is my target character ID and not the account ID which is something like 2000001 and it wouldnt make any sense for rid2name because there's like 9 characters for each account and it will translate the account ID to character name >_< but anyways it worked so thanks for the time though XD Quote
Dastgir Posted December 6, 2012 Posted December 6, 2012 thanks but i just solved it again by using RID instead of GID xD but just kinda confused with RID and GID though.. isnt RID the account ID and GID is the game ID? then for RID, why cant i use set @RID,getcharid(0) instead of getcharid(3) because 150003 is my target character ID and not the account ID which is something like 2000001 and it wouldnt make any sense for rid2name because there's like 9 characters for each account and it will translate the account ID to character name >_< but anyways it worked so thanks for the time though XD That's why i said "But Target should be online." Because that command search target with that account_id and then gives the name. Quote
AnnieRuru Posted December 7, 2012 Posted December 7, 2012 and it wouldnt make any sense for rid2name because there's like 9 characters for each account and it will translate the account ID to character name >_<because we can only online 1 character per account in each timethere's no way to online multiple characters in same account at the same time ... isn't it ? prontera,154,184,4 script Test 85,{ .@testID = getcharid(3); mes strcharinfo(0) +" is my name"; mes getcharid(3) +" is my ID"; mes .@testID +" is target ID"; mes rid2name(.@testID) +" is the target name ..."; close; } Quote
Ryokem Posted December 7, 2012 Posted December 7, 2012 because we can only online 1 character per account in each time there's no way to online multiple characters in same account at the same time ... isn't it ? Correct. Quote
Question
Wise
edit:
it returns null =\
Edited by Mavis6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.