Mr BrycE Posted August 25, 2012 Group: Members Topic Count: 125 Topics Per Day: 0.03 Content Count: 595 Reputation: 24 Joined: 02/23/12 Last Seen: April 1, 2018 Share Posted August 25, 2012 hi goddameit shared some script and how to use the text file src? which is this BUILDIN_FUNC(getmobxy) { int num, id; char *name; struct mob_data *md = NULL; TBL_PC *sd = st->rid?map_id2sd(st->rid):NULL; id = script_getnum(st,2); if(!(md = (struct mob_data *)map_id2bl(id)) || md->bl.type != BL_MOB || !data_isreference(script_getdata(st,3)) ){ script_pushint(st,0); return 0; } num=st->stack->stack_data[st->start+3].u.num; name=(char *)(str_buf+str_data[num&0x00ffffff].str); setd_sub(st,sd,name,0,(void *)(int)md->bl.x,script_getref(st,3)); setd_sub(st,sd,name,1,(void *)(int)md->bl.y,script_getref(st,3)); script_pushint(st,1); return 0; } // BUILDIN_DEF(getmobxy,"i*"), "“The man who asks a question is a fool for a minute, the man who does not ask is a fool for life.” " Quote Link to comment Share on other sites More sharing options...
Elijah23 Posted August 26, 2012 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 292 Reputation: 17 Joined: 12/12/11 Last Seen: Thursday at 02:33 PM Share Posted August 26, 2012 you should put this in script.c BUILDIN_FUNC should be paste above the npc_chat something then BUILDIN_DEF should be paste before null at the end of script.c Sorry if i was not able to paste the exact lines, i'm just using my phone to reply, Quote Link to comment Share on other sites More sharing options...
Mr BrycE Posted August 26, 2012 Group: Members Topic Count: 125 Topics Per Day: 0.03 Content Count: 595 Reputation: 24 Joined: 02/23/12 Last Seen: April 1, 2018 Author Share Posted August 26, 2012 thanks for trying to explain but, i still cant understand, ill wait for you to get your hands on a PC xD ( but i will still try to understand what you say , Thanks! ) Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 26, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share Posted August 26, 2012 https://sites.google.com/site/ea318229/add_source_code Quote Link to comment Share on other sites More sharing options...
Question
Mr BrycE
hi goddameit shared some script and how to use the text file src? which is this
"“The man who asks a question is a fool for a minute, the man who does not ask is a fool for life.” "
Link to comment
Share on other sites
3 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.