Lord Ganja
Members-
Content Count
161 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Staff Applications
Calendar
Everything posted by Lord Ganja
-
What are the differences of return, return 1, return 0, return true, return false, and any other return?
-
@@mrlongshen LOL. same here. but i don't have any idea to do that
-
At bottom right of window, you can drag and resize the window... What the! I didn't know about this. lol thanks @@Dastgir. Anyway how about make the window to always open in its smallest window size, is that possible? So I can just drag it down to make the window bigger. But the default window is the small one.
-
Is there anyway to return the Mini item description window? I'm using 2013-12-23 client and I have this huge item description window. This is my current item desc window: And I wanted it to be like this: Is there anyway to do that? Thanks in advance!
-
@@Winterfox - oh, that's sad. anyway thanks for your response. I was thinking of increasing their hp without creating a new monster. guess i'll just have to do that.. thanks again.
-
Has anyone experienced this on windows 10? Whenever I used the 'reins of mount'(12622) my client crashes. But I tried to login on windows 7 it doesn't crash. Im using 2013-12-23 client.
-
Is it possible to increase monsters/mobs HP on one map only or specified map? for example monsters/mobs on abbey02 has 200% increase in HP. All monsters on abbey02 will increase their hp by 200% but when spawned outside abbey02 they will have their normal hp. Thanks in advance!
-
@@4144 Sorry, that was a typo coz I used to put another variable there. guess I haven't removed it when I paste it here. Anyway even if I removed that, it is still triggered twice :/ @@Winterfox Yes, I intend to use a temporary character variable, since I want to to reset whenever they logged out. @@Angelmelody I already removed the gvg mapflag but it is still triggered twice. anyway will it really be triggered twice when I don't remove the gvg mapflag?
-
Can anyone test this script and see if you experience what im experiencing.. Coz the OnPCDieEvent is always triggered twice.. Idk why. I already checked if I might have duplicates of the script on other files but there's none. So I was wondering why is it triggered twice? Help will always be appreciated. Thanks in advance. Here's the script: OnPCDieEvent: if( strcharinfo(3) == "guild_vs1" && ) { @dead_pts += 1; if ( @dead_pts == 1 ) { message strcharinfo(0), "Reviving. . . . . . ."; sleep2 3000; atcommand "@alive"; message strcharinfo(0), "1 more life left."; end; } if ( @dead_pts >= 2 ) { @dead_pts = 0; message strcharinfo(0), "Sorry, but you failed the quest. Better luck next time!"; sleep2 5000; warp "SavePoint",0,0; end; } } end; Here's the result:
-
use this script command http://herc.ws/board/topic/4593-getmemberaid-checkmes/ then - script test777 -1,{OnPCLoadMapEvent: if(strcharinfo(3) =="event_wroom" && getmapusers("event_wroom") >= 10 && !$@gamerunning ) { $@gamerunning = 1; //--->when the event end , remember to set this varaible to 0; mapannounce "event_wroom", "Event is about to start in 3 seconds.",0; sleep2 1000; mapannounce "event_wroom", "3",0; sleep2 1000; mapannounce "event_wroom", "2",0; sleep2 1000; mapannounce "event_wroom", "1",0; sleep2 1000; mapannounce "event_wroom", "Let's get it on!",0; getmemberaid ALL_SAMEMAP, "event_wroom"; freeloop(1); for( .@i = 0; .@i < $@onlinecount; .@i++ ) { if( attachrid($@onlineaid[.@i]) && strcharinfo(3) == "event_wroom" && checkvending() ) { atcommand "@kick "+strcharinfo(0); } } freeloop(0); $@onlinecount = 0; deletearray $@onlineaid; donpcevent "event_quest::OnStart"; } end;OnInit: setmapflag "event_wroom", mf_loadevent;} already tested , it was working fine for me @@Angelmelody Thank you for this. anyway I just tested it but it still doesn't kick vendors :/ do you think vendors on auto trade mode cannot be kicked using an npc script? I tried this script and clicked the npc.. It announces the char name of the vendors on the map but doesn't kick them.. event_wroom,34,157,4 script kickertest 100,{ getmemberaid ALL_SAMEMAP, "event_wroom"; freeloop(1); for( .@i = 0; .@i < $@onlinecount; .@i++ ) { if( attachrid($@onlineaid[.@i]) && strcharinfo(3) == "event_wroom" && checkvending() ) { atcommand "@kick "+strcharinfo(0); mapannounce "event_wroom", strcharinfo(0),0; } } freeloop(0); $@onlinecount = 0; deletearray $@onlineaid; end;} try 'detachrid' then kick the 'rid2name( $@onlineaid[.@i])' , I think it should work on @AT state vendors event_wroom,34,157,4 script kickertest 100,{ getmemberaid ALL_SAMEMAP, "event_wroom"; freeloop(1); for( .@i = 0; .@i < $@onlinecount; .@i++ ) { if( attachrid($@onlineaid[.@i]) && strcharinfo(3) == "event_wroom" && checkvending() ) { mapannounce "event_wroom", rid2name( $@onlineaid[.@i]),0; detachrid; atcommand "@kick "+rid2name( $@onlineaid[.@i]); } } freeloop(0); $@onlinecount = 0; deletearray $@onlineaid; end;} That's it!! LOL it's working fine now. I only need to detachrid before kicking the vendors on at mode. lol thank you so much @@Angelmelody
-
use this script command http://herc.ws/board/topic/4593-getmemberaid-checkmes/ then - script test777 -1,{OnPCLoadMapEvent: if(strcharinfo(3) =="event_wroom" && getmapusers("event_wroom") >= 10 && !$@gamerunning ) { $@gamerunning = 1; //--->when the event end , remember to set this varaible to 0; mapannounce "event_wroom", "Event is about to start in 3 seconds.",0; sleep2 1000; mapannounce "event_wroom", "3",0; sleep2 1000; mapannounce "event_wroom", "2",0; sleep2 1000; mapannounce "event_wroom", "1",0; sleep2 1000; mapannounce "event_wroom", "Let's get it on!",0; getmemberaid ALL_SAMEMAP, "event_wroom"; freeloop(1); for( .@i = 0; .@i < $@onlinecount; .@i++ ) { if( attachrid($@onlineaid[.@i]) && strcharinfo(3) == "event_wroom" && checkvending() ) { atcommand "@kick "+strcharinfo(0); } } freeloop(0); $@onlinecount = 0; deletearray $@onlineaid; donpcevent "event_quest::OnStart"; } end;OnInit: setmapflag "event_wroom", mf_loadevent;} already tested , it was working fine for me @@Angelmelody Thank you for this. anyway I just tested it but it still doesn't kick vendors :/ do you think vendors on auto trade mode cannot be kicked using an npc script? I tried this script and clicked the npc.. It announces the char name of the vendors on the map but doesn't kick them.. event_wroom,34,157,4 script kickertest 100,{ getmemberaid ALL_SAMEMAP, "event_wroom"; freeloop(1); for( .@i = 0; .@i < $@onlinecount; .@i++ ) { if( attachrid($@onlineaid[.@i]) && strcharinfo(3) == "event_wroom" && checkvending() ) { atcommand "@kick "+strcharinfo(0); mapannounce "event_wroom", strcharinfo(0),0; } } freeloop(0); $@onlinecount = 0; deletearray $@onlineaid; end;}
-
Thanks for the heads up. Anyway I didn't know such. I thought a character can only be kicked when I use its char id. so will it work also with account ids? im noob at scripting :/ I also didn't know about the rid2name. thanks though I'll try this one when I got home.. Anyway thank you for this one. I'll comment back after I test it. @@Angelmelody I test your script. I didn't got any warnings or errors but the vendors are not kicked.
-
I've modified it.changed this part -> setd_sub(st, NULL, ".@account_ids", *users, (void *)__64BPRTSIZE(sd->status.account_id), NULL); to this one -> setd_sub(st, NULL, ".@char_ids", *users, (void *)__64BPRTSIZE(sd->status.char_id), NULL); and extracting the char id's works successfully. the problem is with the script only. script->setd_sub(st, NULL, ".@char_ids", *users, (void *)h64BPTRSIZE(sd->status.char_id), NULL); Thanks for this.. But it still doesn't kick the vendors :/Would you mind to check the script itself? Coz I have a hunch that it's actually because of the script.. I can't understand the logic of your script , why did you need to kick all vendors on that event map?why not just set mapflag novending to that map? I have my own reasons for the vendors.. The event can't run unless there are 10 players participating.. but during night time, there are less players who want to play the event. That's why I they can vend inside the event map for it to start.. I also don't want to use timer for it.. Right now the only problem im facing here is the script wont kick the vendors for some reason. but im pretty sure that it extracts their char ids.
-
I've modified it. changed this part -> setd_sub(st, NULL, ".@account_ids", *users, (void *)__64BPRTSIZE(sd->status.account_id), NULL); to this one -> setd_sub(st, NULL, ".@char_ids", *users, (void *)__64BPRTSIZE(sd->status.char_id), NULL); and extracting the char id's works successfully. the problem is with the script only. script->setd_sub(st, NULL, ".@char_ids", *users, (void *)h64BPTRSIZE(sd->status.char_id), NULL); Thanks for this.. But it still doesn't kick the vendors :/ Would you mind to check the script itself? Coz I have a hunch that it's actually because of the script..
-
I've modified it. changed this part -> setd_sub(st, NULL, ".@account_ids", *users, (void *)__64BPRTSIZE(sd->status.account_id), NULL); to this one -> setd_sub(st, NULL, ".@char_ids", *users, (void *)__64BPRTSIZE(sd->status.char_id), NULL); and extracting the char id's works successfully. the problem is with the script only.
-
I'm currently creating a script that will be triggered by OnPCLoadMapEvent. My problem here is, it has lot's of errors like buildin_rid2name: invalid RID, buildin_checkvending: Player (null) is not online! I modified and applied THIS ONE(this script actually extract account id's but i've modified it) in my server to extract character id's in a specific area. What I wanted to happen here is, after the event started. It will kick the vending players inside the event_wroom map. but the thing is, it can't kick the vendors because the character id's are somehow messy. BUT when I use this script below, it returns the char id's of the players in the area. prontera,148,177,5 script getareausers 100,{ .@len = getareausers("event_wroom",1,1,500,500); for( .@a = 0; .@a < .@len; .@a++ ) npctalk ""+.@char_ids[.@a]; end;} This is the messy script that I use: OnPCLoadMapEvent: if( getmapusers("event_wroom") >= 10 ) { if( .@running )end; // To avoid double trigger if( !.@running ).@running = 1; .@len = getareausersid("event_wroom",1,1,500,500); for( .@i = 0; .@i < .@len; .@i++ ) { if( checkvending(rid2name(.@char_ids[.@i])) ) .@vending += 1; } if ( .@vending >= 1 ) { mapannounce "event_wroom", "Event is about to start in 3 seconds.",0; sleep 1000; mapannounce "event_wroom", "3",0; sleep 1000; mapannounce "event_wroom", "2",0; sleep 1000; mapannounce "event_wroom", "1",0; sleep 1000; mapannounce "event_wroom", "Let's get it on!",0; sleep 1000; donpcevent "event_quest::OnStart"; // This will warp players on the main event map //This part will kick the vendors for( .@i = 0; .@i < getareausersid("event_wroom",1,1,500,500); .@i++ ) { if(checkvending(rid2name(.@char_ids[.@i]))) atcommand "@kick "+rid2name(.@char_ids[.@i]); } } } end; Thanks in advance!
-
@@Dastgir F*CK! Yeah. Hahaha it was that simple. I haven't think of that. Thanks anyways
-
@@Dastgir I need it to check for multiple enchantments. @@Garr I triend your script but it gives me error when it runs. [Debug]: Data: variable name='.@cardid' index=0[Error]: script:implode: not string array Btw, thanks to both of you. I'll explain this further. My custom enchantment system can only add enchantment orb to 2nd,3rd and last slot of an item. For example: I have 5 orbs with id numbers 4700, 4701, 4702, 4703, 4704. And let's say my 'Alice Doll' helm has already an echantment 2nd card slot: 4700 3rd card slot: <emtpy / not yet enchanted> 4th card slot: 4703 Now, when I will try to enchant the 3rd slot which is emtpy, I have again to select which orb I have to enchant into it.. After selecting an orb, it will compare the selected orb from the orb which are already enchanted into the item. If it match any orbs which is already in the item, it will now say this 'mes "Sorry, I cannot enchant the same orb on the same item.";' So in that case, the 'Alice Doll' helm cannot be enchanted with orbs with item id 4700 or 4703 since it is only one orb ID per item.
-
Im currently modifying my enchantment system. I want to it work like, no the same orb on the same items. 1 orb ID per item only But im having troubles with loops. Here's my script. setarray .@cardid[0], getequipcardid(.@part,1),getequipcardid(.@part,2),getequipcardid(.@part,3); for( .@i = 0; .@i < getarraysize(.@cardid); .@i++ ){ if( getequipcardid(.@part,.@i) == .@cardid[.@i] ) { mes .npc$; mes "Sorry, I cannot enchant the same orb on the same item."; close; } }
-
May nakita akong mas short course sakanila, http://www.cnctc.edu.ph/ Mejo may kamahalan nga lang. Maganda naman ang mga feedbacks dito. baka dito ko itry. Salamat pala @@Gmkira
-
Shadow equipments doesn't show sprites?
Lord Ganja replied to Lord Ganja's topic in General Discussion
Maybe. I was thinking about how would it show the sprites. Even the costume garment doesn't show it's sprites. Only the headgears. -
Does shadow equipment doesn't really show sprites? I created a custom weapon with sprite but it doesn't show the weapon sprite when I changed the item into a shadow equipment. But when I make it an equipment weapon, it shows the sprite.
-
Ilang buwan yung short course nila bro?
-
Thank you so much! @@Angelmelody
-
I couldn't find one which is the same as my request. Thanks for this. Anyway i'm having errors when I use it in script. Does it works like this: 'successenchant <equip location>,<card slot>,<enchant orb id>;' ?? I'm having this error: successenchant .@part, .@cardslot',' .@orb; This is the script: prontera,150,180,6 script enchanttest 97,{ mes "select equipment"; setarray .@position$[1], "Head","Body","Left hand","Right hand","Robe","Shoes","Accessory 1","Accessory 2","Head 2","Head 3"; set .@menu$,""; for( set .@i,1; .@i <= 10; set .@i,.@i+1 ) { if( getequipisequiped(.@i) ) set .@menu$, .@menu$ + .@position$[.@i] + "-" + "[" + getequipname(.@i) + "]"; set .@menu$, .@menu$ + ":"; } set .@part,select(.@menu$); next; mes "select a slot"; switch(select("Slot 1:Slot 2:Slot 3:Slot 4")) { case 1: .@cardslot = 0; case 2: .@cardslot = 1; case 3: .@cardslot = 2; case 4: .@cardslot = 3; } next; mes "select orb"; switch(select("1:2:3:4:5:6:7")) { case 1: .@orb = 4700; case 2: .@orb = 4701; case 3: .@orb = 4702; case 4: .@orb = 4703; case 5: .@orb = 4704; case 6: .@orb = 4705; case 7: .@orb = 4706; } next; successenchant .@part, .@cardslot, .@orb; mes "done"; close;}