Dissidia Posted September 12, 2012 Posted September 12, 2012 do we have a script for this..? if(sitstand == sit) ??? Quote
malufett Posted September 12, 2012 Posted September 12, 2012 nope we don't have..but you can add it by your own.. @script.c BUILDIN_FUNC(issitting) { TBL_PC* sd; sd = script_rid2sd(st); if( sd == NULL ) return 0;// no player attached, report source if( pc_issit(sd) ) script_pushint(st, 1); else script_pushint(st, 0); return 0; } BUILDIN_DEF(issitting,""), 1 Quote
Dissidia Posted September 17, 2012 Author Posted September 17, 2012 btw malufett how to use the code? like this ? if(issitting == 1) Quote
malufett Posted September 17, 2012 Posted September 17, 2012 just like other regular script commands.. if( issitting() ){ // the char is currently sitting }else{ // the char is not sitting } 2 Quote
Dissidia Posted September 17, 2012 Author Posted September 17, 2012 thanks again.. its working. Quote
Question
Dissidia
do we have a script for this..?
if(sitstand == sit) ???
5 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.