Snurayroth Posted February 17, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 24 Reputation: 0 Joined: 02/16/12 Last Seen: June 9, 2017 Share Posted February 17, 2012 Hello, in npc script it would look like this: set open,0; How to do this in source ( map\script.c ) ? I want if u got an npc menu open and press cancel that they will set the variable open to 0. i think this is the code: else if( sd->npc_menu == 0xff ) {// Cancel was pressed set open,0; //???? sd->state.menu_or_input = 0; st->state = END; Thats the wrong way.. how to do it ??? Thanks 4 help ! Quote Link to comment Share on other sites More sharing options...
Kenpachi Posted February 17, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 764 Reputation: 220 Joined: 11/14/11 Last Seen: November 19, 2020 Share Posted February 17, 2012 pc_setglobalreg(sd, "open", 0); 1 Quote Link to comment Share on other sites More sharing options...
sketchyphoenix Posted February 17, 2012 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 112 Reputation: 89 Joined: 11/12/11 Last Seen: April 5 Share Posted February 17, 2012 (edited) pc_setglobalreg(sd,"open",0); oh dear Edited February 17, 2012 by sketchyphoenix 1 Quote Link to comment Share on other sites More sharing options...
Snurayroth Posted February 17, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 24 Reputation: 0 Joined: 02/16/12 Last Seen: June 9, 2017 Author Share Posted February 17, 2012 Works, thanks ! Quote Link to comment Share on other sites More sharing options...
Question
Snurayroth
Hello,
in npc script it would look like this:
How to do this in source ( map\script.c ) ?
I want if u got an npc menu open and press cancel that they will set the variable open to 0.
i think this is the code:
Thats the wrong way.. how to do it ???
Thanks 4 help !
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.